blackchalkv0.3.0
Components

List

SketchList — a hand-drawn list of items separated by sketched dividers.

SketchList wraps any number of SketchListItem children and places a rough.js divider between each one. Items can be marked active or made clickable.

Default

import { SketchList, SketchListItem } from "blackchalk";<SketchList><SketchListItem>Inbox</SketchListItem><SketchListItem active>Starred</SketchListItem><SketchListItem>Sent</SketchListItem><SketchListItem>Drafts</SketchListItem></SketchList>

Props

SketchList

PropTypeDefault
childrenReactNode

SketchListItem

PropTypeDefault
childrenReactNode
activeboolean
onClick() => void

See it in the Storybook playground, or read the source.

On this page