UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

56 lines (55 loc) 1.76 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/chip'; import type { ComponentConfig } from '../types/tv'; type Chip = ComponentConfig<typeof theme, AppConfig, 'chip'>; export interface ChipProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** Display some text inside the chip. */ text?: string | number; /** * @defaultValue 'primary' */ color?: Chip['variants']['color']; /** * @defaultValue 'md' */ size?: Chip['variants']['size']; /** * The position of the chip. * @defaultValue 'top-right' */ position?: Chip['variants']['position']; /** When `true`, keep the chip inside the component for rounded elements. */ inset?: boolean; /** When `true`, render the chip relatively to the parent. */ standalone?: boolean; class?: any; ui?: Chip['slots']; } export interface ChipEmits { 'update:show': [value: boolean]; } export interface ChipSlots { default(props?: {}): any; content(props?: {}): any; } declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & { show?: boolean; }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:show": (value: boolean) => any; }, string, import("vue").PublicProps, Readonly<ChipProps & { show?: boolean; }> & Readonly<{ "onUpdate:show"?: ((value: boolean) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };