# Definition

Term–description definition list



<ComponentPreview base="ink" name="definition-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/definition
    ```
  </TabsContent>

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

      <ComponentSource base="ink" name="definition" title="components/ui/definition.tsx" />

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

Usage [#usage]

```tsx
import { Definition } from "@/components/ui/definition";
```

```tsx
<Definition
  items={[
    { term: "CLI", description: "Command Line Interface" },
    { term: "TUI", description: "Terminal User Interface" },
  ]}
/>
```

API Reference [#api-reference]

Definition [#definition]

| Prop        | Type               | Default    |
| ----------- | ------------------ | ---------- |
| `items`     | `DefinitionItem[]` | `required` |
| `termColor` | `string`           | -          |

DefinitionItem [#definitionitem]

| Prop          | Type     | Default    |
| ------------- | -------- | ---------- |
| `term`        | `string` | `required` |
| `description` | `string` | `required` |
