# CategoryGroupAxis

> Brackets and labels of category groups, placed `offset` pixels below the plot.

Source: https://ui.jcsoftdev.com/docs/components/category-group-axis

Brackets and labels of category groups, placed `offset` pixels below the plot.

## Import

```ts
import { CategoryGroupAxis } from "@jcsoftdev/ui/charts";
```

Single-component entry points tree-shake to just this component: `@jcsoftdev/ui/charts/core`.

## Usage

```tsx
export const Default: Story = {};
```

_Source of the Storybook story._

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `spans` * | `readonly CategoryGroupSpan[]` |  |  |
| `offset` * | `number` |  |  |

`*` marks a required prop.

## Storybook stories

- [Default](/storybook/?path=/story/charts-primitives-categorygroupaxis--default)
- [Narrow](/storybook/?path=/story/charts-primitives-categorygroupaxis--narrow)

## Source

`packages/ui/src/charts/core/cartesian/category-group-axis.tsx`
