Pass the full value, and the short one as children.
visitors-count.tsx
FullValue
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The text that shows: the short value ("184K", "1.8 MB"), plain or rolling. |
| full | string | — | The full value ("184,312"): the Tooltip text. |
| shortened | boolean | true | The shown text is shorter than full. Default true. false: plain text, no underline, no tab stop, no Tooltip. |
| tooltip | boolean | true | Show the full value in a Tooltip (hover, focus, and a tap on touch). Default true. false keeps the short text only. |
| quiet | boolean | false | The full value adds to the shown text, it does not replace a cut one (the date behind "5 minutes ago", the ISO value behind "Oct 22, 2026"). Default false. true: no underline and no tab stop, the Tooltip opens on hover only. With tooltip={false}: the shown text only. |
| full | "ltr""rtl" | — | The text direction of full in the Tooltip. Set ltr for a Latin code (an ISO date with "+02:00") on a right-to-left page, so its signs stay in place. Default: the page direction. |
| open | boolean | — | The Tooltip open state, controlled (the Base UI Tooltip open). |
| default | boolean | — | The Tooltip open state at first, uncontrolled (the Base UI Tooltip defaultOpen). |
| on | — | Called when the Tooltip opens or closes: hover, focus, a tap, or Escape. | |
| data-slot | string | — | The data-slot of the root. Default "full-value"; an item that renders it sets its own. |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| Tab | Moves focus to the short text, and shows the full value. |
|---|
Built with
Installs with Full Value
- Components
- Tooltip





