doodle-ui

Alert

Callout with a color-coded stroke: info, warning, error, success. Body copy stays ink-colored so it stays readable.

Heads up
Callouts keep a color-coded stroke and a light wash fill.
<Alert variant="info" title="Heads up" roughness={1.5}>
  Callouts keep a color-coded stroke.
</Alert>

Usage

import { Alert } from "doodleui-react";

<Alert variant="warning" title="Heads up">
  Seed values lock screenshots. Shuffle is for demos.
</Alert>

Props

PropTypeDefaultNotes
variant"info" | "warning" | "error" | "success""info"Sets stroke and wash color.
titleReactNodeundefinedBold first line.
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.