Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

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 { Label } from '@dryui/ui';
</script>

<Label>Content</Label>

Import options

Root package

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

Per-component subpath

ts
import { Label } from '@dryui/ui/label'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Basic Label

svelte
<Label>Email address</Label>

Label with htmlFor

svelte
<Label for="email">Email address</Label>
<Input id="email" placeholder="[email protected]" />

Label sizes

svelte
<Label size="sm">Small label</Label>
<Label size="md">Medium label</Label>
<Label size="lg">Large label</Label>

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
children
Snippet
size
smmdlg
'md'

Forwards native HTML attributes via rest props.