Size Context

Alignment target:@astryxdesign/core v0.7.1 · SizeContext

Props #

PropTypeDefaultDescription
value'sm' | 'md' | 'lg' | nullnullThe default size provided to descendants. null provides nothing, so children use their own default.

Slots #

SlotDescription
defaultThe subtree that reads this default size.

Other exports #

ExportTypeDescription
useSize(sizeProp, default = 'md') => ComputedRefResolves the final size: explicit prop > context > default.
provideSize(size) => voidProvides a size from setup; used inside container components.
SizeContextinjection keyThe underlying context key.
ElementSize'sm' | 'md' | 'lg'The size type.

Native attributes #

The component renders no element, so class and style are not forwarded.