shadcn.io is an independent project built on shadcn/ui
A tweet field shows 0/280 at its end. That count is fixed text, so it stays at zero while someone types. The field itself stops accepting characters at 280.
Use it when a short post has a hard cap and you will render the live count yourself. A longer note belongs in a Textarea. In React, Ark UI does not update 0/280 as the person types.
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
Anatomy

Usage
<InputGroup className="w-full max-w-sm bg-background">
<InputGroupInput
aria-label="Tweet"
maxLength={280}
placeholder="Enter tweet..."
type="text"
/>
<InputGroupAddon align="inline-end">
<InputGroupText>0/280</InputGroupText>
</InputGroupAddon>
</InputGroup>FAQ
How do I warn near the limit?
Switch the count to text-destructive past a threshold, from the same state.
API Reference
Input Group
Sets aria-label="Tweet", maxLength={280}, placeholder="Enter tweet...", type="text" and align="inline-end". The rest is on the Input Group page.





