@nuxt/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
55 lines (54 loc) • 1.81 kB
TypeScript
import { Separator } from 'reka-ui';
import type { SeparatorProps as _SeparatorProps } from 'reka-ui';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/ui/separator';
import type { AvatarProps } from '../types';
import type { ComponentConfig } from '../types/utils';
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 in the middle. */
label?: string;
/**
* Display an icon in the middle.
* @IconifyIcon
*/
icon?: string;
/** Display an avatar in the middle. */
avatar?: AvatarProps;
/**
* @defaultValue 'neutral'
*/
color?: Separator['variants']['color'];
/**
* @defaultValue 'xs'
*/
size?: Separator['variants']['size'];
/**
* @defaultValue 'solid'
*/
type?: Separator['variants']['type'];
/**
* The orientation of the separator.
* @defaultValue 'horizontal'
*/
orientation?: _SeparatorProps['orientation'];
class?: any;
ui?: Separator['slots'];
}
export interface SeparatorSlots {
default(props?: {}): any;
}
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
orientation: "horizontal" | "vertical";
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};