Blue Green Orange Purple Red

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Tag } from '@dryui/ui';
</script>

<Tag>Content</Tag>

Import options

Root package

ts
import { Tag } from '@dryui/ui'

Per-component subpath

ts
import { Tag } from '@dryui/ui/tag'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable
variant
solidoutlinesoft
Visual style preset for the component. 'soft' — —
color
grayblueredgreenyellowpurpleorangeinfosuccesswarningdanger
Semantic color or tone applied to the component. 'gray' — —
size
smmd
Size preset affecting density, spacing, or typography. 'sm' — —
children
Snippet
Content rendered inside the component. — ✓ —
dismissible
boolean
— false — —
onDismiss
() => void
— — — —