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

<User name="Elena Rossi" description="Engineering Lead" avatar={{ fallback: "E" }} />

Import options

Root package

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

Per-component subpath

ts
import { User } from '@dryui/ui/user'

Customize

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

Default

Elena Rossi Engineering Lead
svelte
<User name="Elena Rossi" description="Engineering Lead" />

With Avatar

Elena Rossi Engineering Lead
svelte
<User
  name="Elena Rossi"
  description="Engineering Lead"
  avatar={{ fallback: "ER" }}
/>

Sizes

Elena Rossi Lead
Elena Rossi Lead
Elena Rossi Lead
svelte
<User name="Elena Rossi" description="Lead" size="sm" />
<User name="Elena Rossi" description="Lead" size="md" />
<User name="Elena Rossi" description="Lead" size="lg" />

Vertical

Elena Rossi Engineering Lead
svelte
<User
  name="Elena Rossi"
  description="Engineering Lead"
  orientation="vertical"
  avatar={{ fallback: "ER" }}
/>

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
name
string
description
string
avatar
UserAvatarConfig
chip
UserChipConfig | boolean
size
smmdlg
'md'
orientation
horizontalvertical
'horizontal'

Forwards <div> attributes via rest props. Common examples: id, style, role.