---
title: "Full Value"
description: "Shows a short value in a line of text, such as 184K or 1.8 MB, and keeps the full value one hover, focus, or tap away in a tooltip."
url: https://gelatinui.com/components/full-value
markdown_url: https://gelatinui.com/components/full-value.md
access: free
install: "npx shadcn@latest add @gelatin-ui/full-value"
registry_item: https://gelatinui.com/r/full-value.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Full Value

> Shows a short value in a line of text, such as 184K or 1.8 MB, and keeps the full value one hover, focus, or tap away in a tooltip.

Page: https://gelatinui.com/components/full-value

## When to use it

Best for: A short text that keeps its full value near, in a Tooltip.

- Use it for a short number or a cut text.
- Use `quiet` when the text is the value and the full value is extra.

## When not to use it

- For text that explains a control, use a [Tooltip](https://gelatinui.com/components/tooltip.md).

## Notes for agents

- `full` is required: the Tooltip text.
- `shortened={false}` is plain text, with no tab stop.
- `render={<data value="184312" />}` keeps the machine value.
- A tap opens it on a touch screen.

## Anatomy

```text
FullValue
```

## API reference

### FullValue

| 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. |
| `fullDir` | `"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`). |
| `defaultOpen` | `boolean` |  | The Tooltip open state at first, uncontrolled (the Base UI Tooltip `defaultOpen`). |
| `onOpenChange` | `function` |  | 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. |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| FullValue | `full-value` |  |  |  |

## Usage

Pass the full value, and the short one as children.

```tsx title="visitors-count.tsx"
import { FullValue } from "@/components/ui/full-value";

export function VisitorsCount() {
  return <FullValue full="184,312">184K</FullValue>;
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/full-value
```

It adds 18 registry items: 15 files, 2246 lines, and the npm packages `@base-ui/react`, `clsx`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Tooltip](https://gelatinui.com/components/tooltip.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Tooltip](https://gelatinui.com/components/tooltip.md)
- [Time Ago](https://gelatinui.com/components/time-ago.md)
- [Date Display](https://gelatinui.com/components/date-display.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves focus to the short text, and shows the full value. |

## Accessibility

A short value is one tab stop, with the focus ring.

A 1px dotted line marks it.

It keeps a 44px touch target.
