doodle-ui

Card

Container with a sketch border. Optional offset rectangle behind it reads as a paper shadow.

Field notes
A container with a sketch border. Text inside stays HTML.
<Card title="Field notes" shadow={true} roughness={1.5}>
  A container with a sketch border.
</Card>

Usage

import { Card } from "doodleui-react";

<Card title="Field notes" shadow>
  A container with a sketch border.
</Card>

Cards do not bundle drop-shadow CSS. The shadow is another rough.js rectangle, translated a few pixels.

Props

PropTypeDefaultNotes
titleReactNodeundefinedOptional heading inside the card.
footerReactNodeundefinedOptional footer row.
shadowbooleantrueOffset hachure rectangle behind the card.
fillstringundefinedrough.js fill color for the face rectangle.
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.