#110
Sizes
Avatars at every preset size from extra small to extra large, plus a custom numeric size.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Sizes" pattern (@codeatlasdev/ui demo #110, display/avatar) in my app.
Call get_demo({ ids: ["#110"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Choosing avatar size for dense lists, headers and profile pages.
Keep these library parts, with the props and tokens the demo uses:
- Avatar from "@codeatlasdev/ui"
Behaviour to keep:
- `size="xs"` with `alt="Extra small"`
- `size="sm"` with `alt="Small"`
- `size="md"` with `alt="Medium"`
- `size="lg"` with `alt="Large"`
- `size="xl"` with `alt="Extra large"`
- `size={80}` with `alt="Custom"` is a numeric size
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Avatar
@codeatlasdev/ui
How it is built
- `size="xs"` with `alt="Extra small"`
- `size="sm"` with `alt="Small"`
- `size="md"` with `alt="Medium"`
- `size="lg"` with `alt="Large"`
- `size="xl"` with `alt="Extra large"`
- `size={80}` with `alt="Custom"` is a numeric size
Related
Loading source.