UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

175 lines (174 loc) 5.48 kB
import { PropType } from 'vue'; import type { Triggers } from '../../types'; declare const CDropdownToggle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ /** * Component used for the root node. Either a string to use a HTML element or a component. */ as: { type: StringConstructor; default: string; }; /** * 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; }; /** * Enables pseudo element caret on toggler. */ caret: { type: BooleanConstructor; default: boolean; }; /** * Create a custom toggler which accepts any content. */ custom: BooleanConstructor; /** * Toggle the disabled state for the component. */ disabled: BooleanConstructor; /** * If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button. * * @since 5.0.0 */ navLink: { type: BooleanConstructor; default: boolean; }; /** * @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3' */ shape: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Size the component small or large. * * @values 'sm', 'lg' */ size: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` className for proper spacing around the dropdown caret. */ split: BooleanConstructor; /** * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. * * @type 'hover' | 'focus' | 'click' */ trigger: { type: PropType<Triggers>; default: string; }; /** * Set the button variant to an outlined button or a ghost button. * * @values 'ghost', 'outline' */ variant: { type: StringConstructor; validator: (value: string) => boolean; }; }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ /** * Component used for the root node. Either a string to use a HTML element or a component. */ as: { type: StringConstructor; default: string; }; /** * 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; }; /** * Enables pseudo element caret on toggler. */ caret: { type: BooleanConstructor; default: boolean; }; /** * Create a custom toggler which accepts any content. */ custom: BooleanConstructor; /** * Toggle the disabled state for the component. */ disabled: BooleanConstructor; /** * If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button. * * @since 5.0.0 */ navLink: { type: BooleanConstructor; default: boolean; }; /** * @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3' */ shape: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Size the component small or large. * * @values 'sm', 'lg' */ size: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` className for proper spacing around the dropdown caret. */ split: BooleanConstructor; /** * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. * * @type 'hover' | 'focus' | 'click' */ trigger: { type: PropType<Triggers>; default: string; }; /** * Set the button variant to an outlined button or a ghost button. * * @values 'ghost', 'outline' */ variant: { type: StringConstructor; validator: (value: string) => boolean; }; }>> & Readonly<{}>, { split: boolean; disabled: boolean; as: string; trigger: Triggers; custom: boolean; caret: boolean; navLink: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export { CDropdownToggle };