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

<Textarea bind:value={message} placeholder="Write a message…" />

Import options

Root package

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

Per-component subpath

ts
import { Textarea } from '@dryui/ui/textarea'

Customize

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

Default

svelte
<Textarea placeholder="Enter your message..." />

Sizes

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

Disabled

svelte
<Textarea disabled value="This textarea is disabled." />

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 native HTML attributes via rest props.