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

<VisuallyHidden>Content</VisuallyHidden>

Import options

Root package

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

Per-component subpath

ts
import { VisuallyHidden } from '@dryui/ui/visually-hidden'

Customize

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

Visually Hidden but Accessible

svelte
<Button variant="outline" size="sm">
  <svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
    <path d="M6 18L18 6M6 6l12 12"/>
  </svg>
  <VisuallyHidden>Close dialog</VisuallyHidden>
</Button>

Skip Navigation Link

svelte
<a href="#main-content">
  <VisuallyHidden>Skip to main content</VisuallyHidden>
</a>

<main id="main-content" tabindex="-1">
  <h3>Main content</h3>
  <p>This is where the skip link lands.</p>
</main>

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
children
Snippet

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