# Digits

Box-drawing character numerals



<ComponentPreview base="opentui" name="digits-demo" />

Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @termcn/opentui-digits
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.
      </Step>

      <ComponentSource base="opentui" name="digits" title="components/ui/digits.tsx" />

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

Usage [#usage]

```tsx
import { Digits } from "@/components/ui/digits";
```

```tsx
<Digits value="12:30" />
```

API Reference [#api-reference]

Digits [#digits]

| Prop    | Type                   | Default    |
| ------- | ---------------------- | ---------- |
| `value` | `string \| number`     | `required` |
| `color` | `string`               | -          |
| `size`  | `"sm" \| "md" \| "lg"` | `"md"`     |
