@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
50 lines (49 loc) • 1.98 kB
text/typescript
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/content/content-search-button';
import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps, LinkPropsKeys } from '../../types';
import type { ComponentConfig } from '../../types/tv';
type ContentSearchButton = ComponentConfig<typeof theme, AppConfig, 'contentSearchButton'>;
export interface ContentSearchButtonProps 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('contentSearchButton.label')
*/
label?: string;
/**
* The color of the button.
* @defaultValue 'air-tertiary-no-accent'
*/
color?: ButtonProps['color'];
/**
* Whether the button is collapsed.
* @defaultValue true
*/
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?: ContentSearchButton['slots'] & ButtonProps['b24ui'];
class?: any;
}
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ContentSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContentSearchButtonProps> & 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;
};
};