🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
category: Forms
Multi-line text field for notes, descriptions and pasted snippets. Same chassis as Input (transparent fill, 1px neutral-800 border, neutral-400 placeholder, ring on focus) with a 60px minimum height and vertical resize. Use it for annotation notes, site descriptions, alert messages, and raw filter/config text; use Input for anything that fits on one line.
Parts: Textarea only. Forwards every native <textarea> prop (rows, placeholder, defaultValue, disabled, aria-invalid, ref).
Conventions:
- Default height is
min-h-[60px]; setrows={5}(orclassName="min-h-32") for longer content. - Text is 14px at md+ (
text-baseon phones so iOS doesn't zoom). Addfont-mono text-xsfor code-like content such as rule DSLs. - There is no invalid style baked in (unlike
Input): passaria-invalid="true"for accessibility plusclassName="dark:border-red-400"for the red border (thedark:prefix is required: the component's owndark:border-neutral-800overrides a bareborder-red-400), and put the message in atext-xs text-red-400line below. A right-alignedtext-xs text-neutral-400 tabular-numscounter goes on the same row. disabledfades to 50% opacity. Always pair with aLabelviahtmlFor.
<div className="grid gap-1.5">
<Label htmlFor="note">Annotation note</Label>
<Textarea id="note" placeholder="What changed on this date?" />
</div>
<Textarea rows={5} className="font-mono text-xs" defaultValue={"path contains /docs\nAND country is Germany"} />