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

<Field.Root>
  <Label>Plan</Label>
  <RadioGroup.Root>
    <RadioGroup.Item>...</RadioGroup.Item>
  </RadioGroup.Root>
</Field.Root>

Import options

Root package

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

Per-component subpath

ts
import { RadioGroup } from '@dryui/ui/radio-group'

API

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

Prop Type Description Default Required Bindable

RadioGroup.Root

value
string
Current controlled or bindable value. — — ✓
name
string
Field name used during native form submission. — — —
disabled
boolean
Prevents interaction and applies disabled styling. — — —
required
boolean
— — — —
orientation
horizontalvertical
Horizontal or vertical layout direction. — — —
children
Snippet
Content rendered inside the component. — ✓ —

RadioGroup.Item

value
string
Current controlled or bindable value. — ✓ —
disabled
boolean
Prevents interaction and applies disabled styling. — — —
children
Snippet
Content rendered inside the component. — — —