Field
Form field wrapper with label, description, and error
Shown on commits and team mentions.
Lowercase letters, digits, and hyphens.
We review each deletion request. Responses typically arrive within one business day.
Accessibility
- Pair the control with a visible label or aria-label and keep helper or error text programmatically associated.
- Provide native name, autocomplete, and value wiring when the component participates in form submission.
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 { Field, Label, Input } from '@dryui/ui';
</script>
<Field.Root>
<Label>Username</Label>
<Input bind:value={username} />
</Field.Root> Import options
Root package
ts
import { Field } from '@dryui/ui' Per-component subpath
ts
import { Field } from '@dryui/ui/field' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
Field.Root | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
| error | string | — | '' | — | — |
| required | boolean | — | false | — | — |
| disabled | boolean | Prevents interaction and applies disabled styling. | false | — | — |
| nestRadius | boolean | — | false | — | — |
Field.Description | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Field.Error | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |