Avery Morales
Jules Kwon
Rhea Tanaka

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

<Avatar src="/avatar.jpg" alt="Jane" fallback="JD" />

Import options

Root package

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

Per-component subpath

ts
import { Avatar } from '@dryui/ui/avatar'

API

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

Prop Type Description Default Required Bindable
src
string
Source URL for image, video, or other media content.
alt
string
Accessible alternative text announced when the media itself is not visible. ''
fallback
string
size
smmdlg
Size preset affecting density, spacing, or typography. 'md'
shape
circlesquare
'circle'
status
onlineofflinebusyaway
badge
Snippet
children
Snippet
Content rendered inside the component.