@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
70 lines (69 loc) • 2.31 kB
TypeScript
import { Separator } from 'reka-ui';
import type { SeparatorProps as _SeparatorProps } from 'reka-ui';
import type { VNode } from 'vue';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/separator';
import type { AvatarProps, IconComponent } from '../types';
import type { ComponentConfig } from '../types/tv';
type Separator = ComponentConfig<typeof theme, AppConfig, 'separator'>;
export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/** Display a label on the separator. */
label?: string;
/**
* Display an icon on the separator.
* @IconComponent
*/
icon?: IconComponent;
/**
* Display an avatar on the separator
*/
avatar?: AvatarProps;
/**
* @defaultValue 'default'
*/
accent?: Separator['variants']['accent'];
/**
* @defaultValue 'thin'
*/
size?: Separator['variants']['size'];
/**
* @defaultValue 'solid'
*/
type?: Separator['variants']['type'];
/**
* The orientation of the separator.
* @defaultValue 'horizontal'
*/
orientation?: Separator['variants']['orientation'];
/**
* The position of the content.
* @defaultValue 'center'
*/
position?: Separator['variants']['position'];
class?: any;
b24ui?: Separator['slots'];
}
export interface SeparatorSlots {
default?(props: {
b24ui: Separator['b24ui'];
}): VNode[];
}
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
size: Separator["variants"]["size"];
orientation: Separator["variants"]["orientation"];
position: Separator["variants"]["position"];
type: Separator["variants"]["type"];
accent: Separator["variants"]["accent"];
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};