@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
55 lines (54 loc) • 2.54 kB
TypeScript
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 _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
color: "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-alert" | "air-secondary-accent" | "air-secondary-accent-1" | "air-secondary-accent-2" | "air-tertiary" | "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
collapsed: boolean;
tooltip: boolean | TooltipProps;
kbds: KbdProps["value"][] | KbdProps[];
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};