@inkline/inkline
Version:
Inkline is the intuitive UI Components library that gives you a developer-friendly foundation for building high-quality, accessible, and customizable Vue.js 3 Design Systems.
288 lines (287 loc) • 6.79 kB
TypeScript
import type { PropType } from 'vue';
declare const _default: import("vue").DefineComponent<{
/**
* The color variant of the radio group
* @type light | dark
* @default
* @name color
*/
color: {
type: StringConstructor;
default: undefined;
};
/**
* The disabled state of the radio group
* @type Boolean
* @default false
* @name disabled
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* The error state of the radio, computed based on schema by default.
* @type Boolean | Array
* @default ['touched', 'dirty', 'invalid']
* @TODO use propDefaultValue to set default value
* @name error
*/
error: {
type: PropType<boolean | string[]>;
default: () => string[];
};
/**
* Display the radio group as inline
* @type Boolean
* @default false
* @name inline
*/
inline: {
type: BooleanConstructor;
default: boolean;
};
/**
* The indeterminate state of the radio group
* @type Boolean
* @default false
* @name indeterminate
*/
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
/**
* The fallback label of the radio group. Can be a string, number, render function, or component
* @type String | Number | Boolean | Function | Object
* @default undefined
* @name label
*/
label: {
type: PropType<RadioGroupOption>;
default: undefined;
};
/**
* Used to set the radio group value
* @default
* @name modelValue
*/
modelValue: {
default: undefined;
};
/**
* The unique identifier of the radio group
* @type String
* @default uid()
* @name name
*/
name: {
type: StringConstructor;
default: () => string;
};
/**
* Displays the native browser radio input indicator
* @type Boolean
* @default false
* @name native
*/
native: {
type: BooleanConstructor;
default: boolean;
};
/**
* The readonly state of the radio group
* @type Boolean
* @default false
* @name readonly
*/
readonly: {
type: BooleanConstructor;
default: boolean;
};
/**
* The size variant of the radio group
* @type sm | md | lg
* @default
* @name size
*/
size: {
type: StringConstructor;
default: undefined;
};
/**
* Enable radio group validation using schema
* @type Boolean
* @default true
* @name validateSchema
*/
validate: {
type: BooleanConstructor;
default: boolean;
};
/**
* The options of the checkbox group
* @type Array
* @default []
* @name options
*/
options: {
type: PropType<RadioGroupOption[]>;
default: () => never[];
};
}, {
classes: import("vue").ComputedRef<{
[x: string]: any;
'-disabled': boolean;
'-readonly': boolean;
'-inline': boolean;
'-error': any;
}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* The color variant of the radio group
* @type light | dark
* @default
* @name color
*/
color: {
type: StringConstructor;
default: undefined;
};
/**
* The disabled state of the radio group
* @type Boolean
* @default false
* @name disabled
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* The error state of the radio, computed based on schema by default.
* @type Boolean | Array
* @default ['touched', 'dirty', 'invalid']
* @TODO use propDefaultValue to set default value
* @name error
*/
error: {
type: PropType<boolean | string[]>;
default: () => string[];
};
/**
* Display the radio group as inline
* @type Boolean
* @default false
* @name inline
*/
inline: {
type: BooleanConstructor;
default: boolean;
};
/**
* The indeterminate state of the radio group
* @type Boolean
* @default false
* @name indeterminate
*/
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
/**
* The fallback label of the radio group. Can be a string, number, render function, or component
* @type String | Number | Boolean | Function | Object
* @default undefined
* @name label
*/
label: {
type: PropType<RadioGroupOption>;
default: undefined;
};
/**
* Used to set the radio group value
* @default
* @name modelValue
*/
modelValue: {
default: undefined;
};
/**
* The unique identifier of the radio group
* @type String
* @default uid()
* @name name
*/
name: {
type: StringConstructor;
default: () => string;
};
/**
* Displays the native browser radio input indicator
* @type Boolean
* @default false
* @name native
*/
native: {
type: BooleanConstructor;
default: boolean;
};
/**
* The readonly state of the radio group
* @type Boolean
* @default false
* @name readonly
*/
readonly: {
type: BooleanConstructor;
default: boolean;
};
/**
* The size variant of the radio group
* @type sm | md | lg
* @default
* @name size
*/
size: {
type: StringConstructor;
default: undefined;
};
/**
* Enable radio group validation using schema
* @type Boolean
* @default true
* @name validateSchema
*/
validate: {
type: BooleanConstructor;
default: boolean;
};
/**
* The options of the checkbox group
* @type Array
* @default []
* @name options
*/
options: {
type: PropType<RadioGroupOption[]>;
default: () => never[];
};
}>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
color: string;
size: string;
options: RadioGroupOption[];
name: string;
label: RadioGroupOption;
error: boolean | string[];
disabled: boolean;
readonly: boolean;
modelValue: undefined;
indeterminate: boolean;
native: boolean;
validate: boolean;
inline: boolean;
}, {}>;
export default _default;