Component packs › Kintsugi › Crack Field

Crack Field

When what you typed fails, the glaze cracks from the end of your text and the field jolts; fix it and gold flows into every crack.

Crack Field is an input from Kintsugi, a component pack with 6 crack and mend controls: Controls glazed like ceramic: errors crack them, and the repair flows in as gold. Price: $2 for the whole pack.

Built with: cracks from the caret, gold mend on fix, repair stays visible.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Crack Field props

PropTypeDefaultDescription
labelstring
placeholderstring
valuestring
typestring
validate(value: string) => string | voidan email checkReturns an error message, or nothing when the value is fine. Default: an email check.
okTextstring"Looks good"Shown when it is fine. Default "Looks good".
onValid(value: string) => void

Methods on the ref

Use it in React

import CrackField from './CrackField';

<CrackField />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Kintsugi

Good for: Skeuomorphic UI.