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

<Field.Root>
  <Label>Prompt</Label>
  <PromptInput>Content</PromptInput>
</Field.Root>

Import options

Root package

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

Per-component subpath

ts
import { PromptInput } from '@dryui/ui/prompt-input'

API

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

Prop Type Description Default Required Bindable
value
string
Current controlled or bindable value. '' — —
placeholder
string
Hint text shown when no value is selected or entered. 'Type a message...' — —
disabled
boolean
Prevents interaction and applies disabled styling. false — —
submitLabel
string
— 'Send' — —
submitSize
ButtonSize
— 'md' — —
submitVariant
ButtonVariant
— 'solid' — —
onpromptsubmit
(value: string) => void
— — — —
actions
Snippet
— — — —