logo-icon
STW UI

Media

Media is a simple way to display Avatar, Title, and Subtitle.

Usage

svelte
import { Media } from 'stwui';
// OR
import Media from 'stwui/media'; // for tree shaking

Basic

Europe Street beat

www.instagram.com

Media Slots

avatar <Media.Avatar slot="avatar" />
content <Media.Content slot="content" />
default

Media.Avatar Props

align 'top' | 'center' | 'bottom' top
src string
alt string avatar
size 'xs' | 'sm' | 'md' | 'lg' | 'xl' md
placeholder boolean true

Media.Content Slots

title <Media.Content.Title slot="title" />
description <Media.Content.Description slot="description" />
default

Medai.Content.Title Slots

default

Medai.Content.Description Slots

default

Media Class Identifiers

stwui-media
stwui-media-avatar-wrapper
stwui-media-avatar
stwui-media-avatar-placeholder-wrapper
stwui-media-avatar-placeholder
stwui-media-content
stwui-media-content-title
stwui-media-content-description