compote-ui
Version:
An opinionated UI component library for Svelte, built on top of [Ark UI](https://ark-ui.com) with additional components and features not available in the core Ark UI library.
12 lines (11 loc) • 438 B
TypeScript
import type { Snippet } from 'svelte';
import type { HTMLAttributes } from 'svelte/elements';
import type { ClassValue } from 'tailwind-variants';
import type { BadgeColor, BadgeVariant } from './badge.variants';
export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'class'> {
variant?: BadgeVariant;
color?: BadgeColor;
icon?: Snippet;
class?: ClassValue;
}
export type { BadgeColor, BadgeVariant };