Gradient Mark
A token gradient standing in for an identity — an account, a workspace, an app — where a photo or initials would claim more than the mark needs to. Round for identities, a squircle for tiles that carry an action.
import { GradientMark } from "@pestoui/core"Shapes & sizes
size is the edge in px. A square takes the rounded-box-* step for that edge, so its corner holds the same proportion at every size instead of collapsing into a circle.
With a glyph
Children are centred. The glyph's ink comes from className — dark on a green-into-lime run, where white would hold on the first stop and vanish on the second.
Beside a name
The pairing it is built for. The mark is hidden from assistive tech by default; the name beside it is what tells two workspaces apart.
- Support agentsCustomer replies
- Research workspaceWeb and document search
- Team workspaceShared runs
Without the hairline
hairline={false} drops the faint shadow — for a mark on a tinted surface, where the drop would read as a smudge.
Props
Pesto UI · 117 documented components