# Panel

Titled bordered panel



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

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

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

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

Usage [#usage]

```tsx
import { Panel } from "@/components/ui/panel";
```

```tsx
<Panel title="System Status" borderStyle="round" width={40}>
  <Text>All services operational</Text>
</Panel>
```

API Reference [#api-reference]

Panel [#panel]

| Prop          | Type                                                                                         | Default |
| ------------- | -------------------------------------------------------------------------------------------- | ------- |
| `title`       | `string`                                                                                     | -       |
| `titleColor`  | `string`                                                                                     | -       |
| `borderColor` | `string`                                                                                     | -       |
| `borderStyle` | `"single" \| "double" \| "round" \| "bold" \| "singleDouble" \| "doubleSingle" \| "classic"` | -       |
| `bordered`    | `boolean`                                                                                    | `true`  |
| `width`       | `number`                                                                                     | -       |
| `height`      | `number`                                                                                     | -       |
| `paddingX`    | `number`                                                                                     | `1`     |
| `paddingY`    | `number`                                                                                     | `0`     |
| `children`    | `ReactNode`                                                                                  | -       |
