@coreui/vue
Version:
UI Components Library for Vue.js
168 lines (167 loc) • 4.97 kB
TypeScript
declare const CChip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/**
* Toggle the active state for the component.
*/
active: BooleanConstructor;
/**
* Provides an accessible label for the remove button.
*/
ariaRemoveLabel: {
type: StringConstructor;
default: string;
};
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*/
as: {
type: StringConstructor;
default: string;
};
/**
* Enables interactive hover styling and pointer cursor.
*/
clickable: BooleanConstructor;
/**
* Sets the color context of the component to one of CoreUI's themed colors.
*
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
*/
color: {
type: StringConstructor;
validator: (value: string) => boolean;
};
/**
* Toggle the disabled state for the component.
*/
disabled: BooleanConstructor;
/**
* Displays a remove button inside the component.
*/
removable: BooleanConstructor;
/**
* Replaces the default remove icon with a custom icon node.
*/
removeIcon: {
type: (StringConstructor | ObjectConstructor)[];
default: undefined;
};
/**
* Enables selectable behavior and keyboard toggle support.
*/
selectable: BooleanConstructor;
/**
* Controls the selected state of a selectable component.
*/
selected: BooleanConstructor;
/**
* Size the component small or large.
*
* @values 'sm', 'lg'
*/
size: {
type: StringConstructor;
validator: (value: string) => boolean;
};
/**
* Set the button variant to an outlined style.
*
* @values 'outline'
*/
variant: {
type: StringConstructor;
validator: (value: string) => value is "outline";
};
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "click" | "keydown" | "deselect" | "remove" | "selected-change")[], "select" | "click" | "keydown" | "deselect" | "remove" | "selected-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Toggle the active state for the component.
*/
active: BooleanConstructor;
/**
* Provides an accessible label for the remove button.
*/
ariaRemoveLabel: {
type: StringConstructor;
default: string;
};
/**
* Component used for the root node. Either a string to use a HTML element or a component.
*/
as: {
type: StringConstructor;
default: string;
};
/**
* Enables interactive hover styling and pointer cursor.
*/
clickable: BooleanConstructor;
/**
* Sets the color context of the component to one of CoreUI's themed colors.
*
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
*/
color: {
type: StringConstructor;
validator: (value: string) => boolean;
};
/**
* Toggle the disabled state for the component.
*/
disabled: BooleanConstructor;
/**
* Displays a remove button inside the component.
*/
removable: BooleanConstructor;
/**
* Replaces the default remove icon with a custom icon node.
*/
removeIcon: {
type: (StringConstructor | ObjectConstructor)[];
default: undefined;
};
/**
* Enables selectable behavior and keyboard toggle support.
*/
selectable: BooleanConstructor;
/**
* Controls the selected state of a selectable component.
*/
selected: BooleanConstructor;
/**
* Size the component small or large.
*
* @values 'sm', 'lg'
*/
size: {
type: StringConstructor;
validator: (value: string) => boolean;
};
/**
* Set the button variant to an outlined style.
*
* @values 'outline'
*/
variant: {
type: StringConstructor;
validator: (value: string) => value is "outline";
};
}>> & Readonly<{
onSelect?: ((...args: any[]) => any) | undefined;
onClick?: ((...args: any[]) => any) | undefined;
onKeydown?: ((...args: any[]) => any) | undefined;
onRemove?: ((...args: any[]) => any) | undefined;
onDeselect?: ((...args: any[]) => any) | undefined;
"onSelected-change"?: ((...args: any[]) => any) | undefined;
}>, {
disabled: boolean;
as: string;
active: boolean;
clickable: boolean;
removable: boolean;
selectable: boolean;
selected: boolean;
ariaRemoveLabel: string;
removeIcon: string | Record<string, any>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export { CChip };