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

<Kbd>Content</Kbd>

Import options

Root package

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

Per-component subpath

ts
import { Kbd } from '@dryui/ui/kbd'

Customize

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

Default

Ctrl+C
svelte
<Kbd keys={['Ctrl', 'C']} />

Various Shortcuts

Ctrl+C Ctrl+V Ctrl+Shift+P +K
svelte
<Kbd keys={['Ctrl', 'C']} />
<Kbd keys={['Ctrl', 'V']} />
<Kbd keys={['Ctrl', 'Shift', 'P']} />
<Kbd keys={['⌘', 'K']} />

Single Keys

Enter Esc Tab
svelte
<Kbd keys={['Enter']} />
<Kbd keys={['Esc']} />
<Kbd keys={['Tab']} />

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
keys
string[]
children
Snippet

Forwards <element> attributes via rest props. Common examples: id, class, aria-label.