Avatar API
Every prop of the 6 parts Avatar exports, generated from the package manifest.
import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- Avatar · AvatarBadge · AvatarFallback · AvatarGroup · AvatarGroupCount · AvatarImagetypes: AvatarBadgeProps · AvatarBadgeTone · AvatarProps · AvatarShape
- Variants
- shape: circle | square
- tone: done | info | neutral | stuck | working
- Contract
- packages/brand-system/src/components/avatar.contract.test-d.ts
- Demos
- 5 on the Avatar page — rendered live, hydrated
- Source
- packages/brand-system/src/components/avatar.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Avatar is for, how it composes and what it looks like, see Avatar.
Avatar
AvatarProps
Prop
Type
Also inherited from @radix-ui/react-avatar — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
AvatarBadge
AvatarBadgeProps
Prop
Type
Also accepts everything from React.HTMLAttributes<HTMLSpanElement>.
AvatarFallback
Inherited from @radix-ui/react-avatar — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
AvatarGroup
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
AvatarGroupCount
A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
AvatarImage
Inherited from @radix-ui/react-avatar — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type