UNPKG

@nuxt/ui

Version:

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

44 lines (43 loc) 1.49 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/badge'; import type { UseComponentIconsProps } from '../composables/useComponentIcons'; import type { ComponentConfig } from '../types/utils'; type Badge = ComponentConfig<typeof theme, AppConfig, 'badge'>; export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'loadingIcon'> { /** * The element or component this component should render as. * @defaultValue 'span' */ as?: any; label?: string | number; /** * @defaultValue 'primary' */ color?: Badge['variants']['color']; /** * @defaultValue 'solid' */ variant?: Badge['variants']['variant']; /** * @defaultValue 'md' */ size?: Badge['variants']['size']; /** Render the badge with equal padding on all sides. */ square?: boolean; class?: any; ui?: Badge['slots']; } export interface BadgeSlots { leading(props?: {}): any; default(props?: {}): any; trailing(props?: {}): any; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, { as: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };