# CategoryAxes

> Gridlines along the value axis plus both axes of a `categoryLayout`.

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

Gridlines along the value axis plus both axes of a `categoryLayout`.

## Import

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

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

## Usage

```tsx
export const Default: Story = {
  render: (args) => <AxesFrame horizontal={false} title={args.title} grid={args.grid} />,
};
```

_Source of the Storybook story._

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `layout` * | `CategoryLayout` |  |  |
| `title` | `string` |  |  |
| `grid` | `boolean` | `true` |  |

`*` marks a required prop.

## Storybook stories

- [Default](/storybook/?path=/story/charts-primitives-categoryaxes--default)
- [Horizontal](/storybook/?path=/story/charts-primitives-categoryaxes--horizontal)
- [Without Grid](/storybook/?path=/story/charts-primitives-categoryaxes--without-grid)

## Source

`packages/ui/src/charts/core/distribution/marks.tsx`
