@ownclouders/design-system
Version:
ownCloud Design System is based on VueDesign Systems and is used to design ownCloud UI components
70 lines (69 loc) • 1.74 kB
TypeScript
/**
* The switch has two states between users can choose.
*/
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
/**
* Value of the switch
*
* @model
**/
checked: {
type: BooleanConstructor;
required: false;
default: boolean;
};
/**
* Accessible name of the switch
**/
label: {
type: StringConstructor;
required: true;
default: any;
};
/**
* ID of the label element
* If not set, unique ID is used instead with format `oc-switch-label-{number}`
*/
labelId: {
type: StringConstructor;
required: false;
default: () => string;
};
}>, {}, {}, {}, {
toggle(): void;
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:checked"[], "update:checked", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/**
* Value of the switch
*
* @model
**/
checked: {
type: BooleanConstructor;
required: false;
default: boolean;
};
/**
* Accessible name of the switch
**/
label: {
type: StringConstructor;
required: true;
default: any;
};
/**
* ID of the label element
* If not set, unique ID is used instead with format `oc-switch-label-{number}`
*/
labelId: {
type: StringConstructor;
required: false;
default: () => string;
};
}>> & Readonly<{
"onUpdate:checked"?: (...args: any[]) => any;
}>, {
label: string;
checked: boolean;
labelId: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;