MCPcopy
hub / github.com/vuejs/core / useSlots

Function useSlots

packages/runtime-core/src/apiSetupHelpers.ts:415–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413}
414
415export function useSlots(): SetupContext['slots'] {
416 return getContext('useSlots').slots
417}
418
419export function useAttrs(): SetupContext['attrs'] {
420 return getContext('useAttrs').attrs

Callers 3

setupFunction · 0.90
renderFunction · 0.85

Calls 1

getContextFunction · 0.85

Tested by 2

setupFunction · 0.72
renderFunction · 0.68