Shared line icons and filled status marks that take the surrounding text colour.
atomIcons
All glyphs
Every line glyph with its name. They take the surrounding text colour.
close
chevron-down
chevron-left
chevron-right
arrow-right
check
plus
minus
sun
moon
monitor
home
calendar
trash
search
upload-cloud
Installation
Copies the component into src/design-system/ as your own source, with only the files it needs.
npx avesk-ui@latest add glyphIt needs no other component. The first time, it also adds the tokens and the cn() helper, imports the tokens in globals.css and installs clsx and tailwind-merge. Files already in your project are kept unless you add --force.
Import
Lives in src/design-system/components/glyph.tsx.
import { glyphNames, statusGlyphNames, Glyph, StatusGlyph } from "@/design-system/components/glyph";Usage
<Glyph name="close" className="size-4" />
<StatusGlyph name="success" className="text-green-600" />Examples
Status glyphs
Filled marks for success, error, info and warning, plus sparkle and the burst loader.
success
error
info
warning
sparkle
burst
Size and colour
Size with a size-* class and colour with a text-* class.
When to use
Use it when
- A component or screen needs a close, chevron, tick, plus, bin, search, cloud, home or calendar icon
- You need a status mark: success, error, info, warning, sparkle, or the loading burst
Rules
- Never draw a new inline <svg> in a component or screen; add the path to glyph.tsx
- Size with a size-* class; colour with a text-* class
Properties
StatusGlyph
| Prop | Type | Default |
|---|---|---|
name * | "success" | "error" | "info" | "warning" | "sparkle" | "burst" | – |
className | string | – |
mark | string | "stroke-white" |
fade | boolean | false |
* required
Accessibility
- Decorative (aria-hidden). The control or text around it must carry the meaning
Related
AccordionAgent limits cardAgent thinkingAlertArea chart cardBar list cardBreadcrumbsButtonCheckboxChoice chipColour pickerBar chart cardCombo chart cardCommand menuDate pickerDropdown menuField and inputsFile uploadFunnel chart cardNotification CenterNumber fieldRadar chart cardRadial chart cardTableToast
Used in the Avesk app: Projects & Clients, Onboarding.