UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

50 lines (49 loc) 1.99 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/dashboard-search-button'; import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps, LinkPropsKeys } from '../types'; import type { ComponentConfig } from '../types/tv'; type DashboardSearchButton = ComponentConfig<typeof theme, AppConfig, 'dashboardSearchButton'>; export interface DashboardSearchButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'icon' | 'label' | 'color'> { /** * The icon displayed in the button. * @defaultValue icons.search * @IconComponent */ icon?: IconComponent; /** * The label displayed in the button. * @defaultValue t('dashboardSearchButton.label') */ label?: string; /** * The color of the button. * @defaultValue 'air-tertiary-no-accent' */ color?: ButtonProps['color']; /** * Whether the button is collapsed. * @defaultValue false */ collapsed?: boolean; /** * Display a tooltip on the button when is collapsed with the button label. * This has priority over the global `tooltip` prop. */ tooltip?: boolean | TooltipProps; /** * The keyboard keys to display in the button. * `{ accent: 'default' }`{lang="ts-type"} * @defaultValue ['meta', 'k'] */ kbds?: KbdProps['value'][] | KbdProps[]; b24ui?: DashboardSearchButton['slots'] & ButtonProps['b24ui']; class?: any; } declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };