doodle-ui

Badge

Compact label with a sketch rectangle. Use it for status, counts, or a one-word tag.

sketch
<Badge variant="accent" roughness={1.5}>sketch</Badge>

Usage

import { Badge } from "doodleui-react";

<Badge variant="accent">sketch</Badge>

Props

PropTypeDefaultNotes
variant"default" | "accent" | "outline""default"Fill and stroke pairing.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.