Regex Input

Regex field with slash delimiters, flag suffix in amber, and an emerald match-count pill on the right.

/^[a-z]+@beste\.co$/gi42

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Input28 } from "@/components/beste/piece/input28";

<Input28
  pattern="^[a-z]+@beste\.co$"
  flags="gi"
  matches={42}
/>

More Input pieces

View all Input
typescript
12
const answer = 42;return answer * 2;

Code Input

input25

Dark mono code field with a language eyebrow, line-number gutter, and content lines on a foreground canvas.

How was your stay?
4.0
Tap to rate. Optional comment on the next step.

Five-star rater with filled amber stars in muted tiles and a decimal rating chip to the right.

Ξ
0x4A81…6fA0ENS
Ethereum · Mainnet

Crypto address field with a gradient Ξ avatar, shortened mono address, and an ENS lookup chip.

design tokens

Pill-shaped search input with a leading magnifier and an inline pill-shaped clear when there is a value.

2026-04-23

Date Input

input15

Date field with a leading calendar icon, mono ISO value, and a chevron hinting at a popover.

Mira violet#6D5EFA

Color field pairing a filled swatch with the chosen name and hex code and an eyedropper button.