@opencloud-eu/design-system
Version:
OpenCloud Design System is used to design OpenCloud UI components
27 lines (26 loc) • 859 B
TypeScript
export interface Props {
/**
* @docs Determines if the switch is checked.
*/
checked?: boolean;
/**
* @docs The label of the switch.
*/
label: string;
/**
* @docs The element ID of the label.
*/
labelId?: string;
}
export interface Emits {
/**
* @docs Emitted when the switch has been toggled.
*/
(e: 'update:checked', value: boolean): void;
}
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"update:checked": (value: boolean) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
"onUpdate:checked"?: (value: boolean) => any;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
export default _default;