# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/piece/input2. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Pieces](/pieces)
3. /
4. [Input](/pieces/input)
5. /
6. OTP Digit Boxes

# OTP Digit Boxes

Row of square digit cells with a blinking cursor in the next empty slot.

4

2

7

CLICode

Base UI

![](https://oud.pics/sm/l/npm.svg)`npx shadcn add https://ui.beste.co/piece/r-base/input2`

New here? Read the [installation guide](/docs/installation).

Import & useCopy

```
import { Input2 } from "@/components/beste/piece/input2";

<Input2
  digits={[
    "4",
    "2",
    "7",
    "",
    "",
    ""
  ]}
  total={6}
/>
```

## More Input pieces

[View all Input](/pieces/input)

[](/piece/input11)

••••••••••••••••

### Password Dots

Masked password row rendered as spaced mono bullets paired with an eye reveal button.

[](/piece/input6)

4

### Number Stepper

Compact number control with minus and plus buttons flanking a centered mono value.

[](/piece/input5)

Beste Sözen

### Text Field

Bare text input atom with a focused state that adds a primary ring and a blinking caret after the value.

[](/piece/input8)

Keyboard shortcut

⌘ShiftK

REC

Press any combination

### Shortcut Recorder

Keyboard shortcut field that renders the captured keys as keycap pills with a blinking REC indicator while recording.

[](/piece/input22)

How was your stay?

4.0

Tap to rate. Optional comment on the next step.

### Rating Input

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

[](/piece/input21)

Session length

1h45m

HH:MM

### Duration Input

Length field with a timer icon, h and m unit-annotated number tiles, and an HH:MM format hint.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.