@nextcloud/vue
Version:
Nextcloud vue components
61 lines (60 loc) • 2.27 kB
TypeScript
import { Slot } from 'vue';
type __VLS_Props = {
/**
* Label of the radio group (accessible name).
* It can be hidden visually if needed using `hide-label` prop.
*/
label: string;
/**
* If set the label of the button group will not be shown visually but only for accessibility purposes.
*
* @deprecated Use `hide-label` instead.
*/
labelHidden?: boolean;
/**
* If set the label of the button group will not be shown visually but only for accessibility purposes.
*/
hideLabel?: boolean;
/**
* Optional visual description of the radio group.
*/
description?: string;
};
type __VLS_PublicProps = {
modelValue?: string;
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
/**
* Slot for the included radio buttons (`NcCheckboxRadioSwitch`).
* The `type` prop of the `NcCheckboxRadioSwitch` will be automatically set (and forced) to `radio`.
*
* If you want the button variant, then you have to use `NcRadioGroupButton`.
*/
default?: Slot;
}> & {
/**
* Slot for the included radio buttons (`NcCheckboxRadioSwitch`).
* The `type` prop of the `NcCheckboxRadioSwitch` will be automatically set (and forced) to `radio`.
*
* If you want the button variant, then you have to use `NcRadioGroupButton`.
*/
default?: Slot;
};
refs: {};
rootEl: HTMLFieldSetElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: string) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};