Generated API snapshot
@askrjs/ui/switch
Exports from the declarations published in @askrjs/ui 0.0.13. Signatures are generated from the installed artifact.
@askrjs/ui/switch0.0.13
Exports
This entrypoint publishes 7 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
Switchtype
Switch: { (props: SwitchButtonProps): JSX.Element; (props: SwitchAsChildProps): JSX.Element; }SWITCH_A11Y_CONTRACTtype
SWITCH_A11Y_CONTRACT: { readonly ROLE: "switch"; readonly CHECKED_ATTRIBUTE: "aria-checked"; readonly KEYBOARD_ACTIVATION: readonly ["Enter", "Space"]; readonly DATA_ATTRIBUTES: { readonly slot: "data-slot"; readonly state: "data-state"; readonly disabled: "data-disabled"; }; readonly DISABLED_ATTRIBUTES: { readonly nativeButton: { readonly disabled: true; readonly "aria-disabled": "true"; }; readonly nonNative: { readonly "aria-disabled": "true"; readonly tabIndex: -1; }; }; readonly FORM_INTEGRATION: { readonly host: "button"; readonly hiddenInputType: "checkbox"; readonly hiddenInputValue: "on"; }; }SwitchA11yContracttype
SwitchA11yContract: anySwitchAsChildPropstype
SwitchAsChildProps: anySwitchButtonPropstype
SwitchButtonProps: anySwitchOwnPropstype
SwitchOwnProps: anySwitchPropstype
SwitchProps: any