Input Group

One sketch frame wrapping an input and addons.

@
<InputGroup roughness={1.5}>
  <InputGroupAddon>@</InputGroupAddon>
  <InputGroupInput placeholder="username" />
</InputGroup>

CLI install

npx doodleui-react add input-group

Usage

import { InputGroup, InputGroupAddon, InputGroupInput } from "doodleui-react";

<InputGroup>\n  <InputGroupAddon>@</InputGroupAddon>\n  <InputGroupInput placeholder="user" />\n</InputGroup>

Props

PropTypeDefaultNotes
animatebooleantrueDraw-in the outer frame; focus within morphs the border seed. Overrides DoodleUIProvider. Reduced motion disables this unless the provider set forceAnimate.
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.