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

<Input type="email" bind:value={email} placeholder="you@example.com" />

Import options

Root package

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

Per-component subpath

ts
import { Input } from '@dryui/ui/input'

Customize

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

Sign-in Form

svelte
<form>
  <Stack gap="md">
    <div>
      <Label for="hero-email">Email</Label>
      <Input id="hero-email" type="email" placeholder="you@example.com" />
    </div>
    <div>
      <Label for="hero-password">Password</Label>
      <Input id="hero-password" type="password" placeholder="Enter your password" />
    </div>
    <Button style="width: 100%">Sign in</Button>
  </Stack>
</form>

Sizes

svelte
<Input size="sm" placeholder="Small" />
<Input size="md" placeholder="Medium" />
<Input size="lg" placeholder="Large" />

Disabled

svelte
<Input disabled value="Disabled input" />

Bound Value

Value:

svelte
<script lang="ts">
  let value = $state('');
</script>
<Input bind:value placeholder="Type something..." />
<p>Value: {value}</p>

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
value
string
''
size
smmdlg
'md'
disabled
boolean

Forwards <input> attributes via rest props. Common examples: name, autocomplete, inputmode. Omitted: size.