doodle-ui

Input

Single-line text field with a sketchy border. Native focus rings are removed. Focus thickens the sketch stroke and shifts it toward the accent color.

<Input label="Email" placeholder="you@studio.dev" roughness={1.5} />

Usage

import { Input } from "doodleui-react";

<Input label="Email" placeholder="you@studio.dev" />

Pass a label instead of using placeholder-as-label. All native input attributes (type, name, autoComplete, onChange) forward to the control.

Props

PropTypeDefaultNotes
labelReactNodeundefinedOptional label rendered above the field.
placeholderstringundefinedNative placeholder. Not a substitute for label.
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.