Avatar
Circular avatar with initial and deterministic color based on the FNV-1a hash of the name.
Avatar
Design lines
A
vue
1<Tabs defaultValue="tuix">2 <TabsList>3 <Tab value="tuix">TUIX</Tab>4 <Tab value="rubik">Rubik</Tab>5 </TabsList>6 <TabPanel value="tuix">7 <Avatar name="Ada" design="tuix" />8 </TabPanel>9 <TabPanel value="rubik">10 <Avatar name="Ada" design="rubik" />11 </TabPanel>12</Tabs>Demo
Nombre (name)
Deterministic color and initial from hash.
A
B
C
D
E
vue
1<Avatar name="Alice" />2<Avatar name="Bob" />3<Avatar name="Charlie" />4<Avatar name="Diana" />5<Avatar name="Eve" />Size (size)
Three sizes: sm, md and lg.
A
B
C
D
E
vue
1<Avatar name="A" size="sm" />2<Avatar name="B" size="md" />3<Avatar name="C" size="lg" />Props
name
Name used to extract the initial and generate the color from the hash.
| Type | Default | Required |
|---|---|---|
string | — | ✅ |
size
Avatar size.
| Type | Default | Required |
|---|---|---|
'sm' | 'md' | 'lg' | 'md' | ❌ |
design
Design line (or inherit from data-design).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
CSS Custom Properties
| Token | Default | Description |
|---|---|---|
--font-mono | "JetBrains Mono", ui-monospace, monospace | Monospace font stack for code-like content (key labels, log lines, chips). |
Ver Theming para la convención completa.