Component packs › Kintsugi › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
placeholder | string | ||
value | string | ||
type | string | ||
validate | (value: string) => string | void | an email check | Returns an error message, or nothing when the value is fine. Default: an email check. |
okText | string | "Looks good" | Shown when it is fine. Default "Looks good". |
onValid | (value: string) => void |
readonly value: stringreadonly valid: booleansetValue(value: string): voidcheck(): boolean: Runs the check now (as on blur).destroy(): voidimport CrackField from './CrackField';
<CrackField />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.