UNPKG

@empathyco/x-components

Version:
31 lines (25 loc) 1.06 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseSwitch](./x-components.baseswitch.md) ## BaseSwitch variable Basic switch component to handle boolean values. This component receives its selected state using a prop, and emits a Vue event whenever the user clicks it. **Signature:** ```typescript _default: import("vue").DefineComponent<{ modelValue: { type: BooleanConstructor; default: boolean; }; }, { cssClasses: import("vue").ComputedRef<VueCSSClasses>; toggle: () => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ modelValue: { type: BooleanConstructor; default: boolean; }; }>> & { "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; }, { modelValue: boolean; }, {}> ```