react-code-dataset / chakra-ui /apps /www /content /guides /snippet-specify-custom-directory.mdx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
509 Bytes
---
title: Specifying custom directory
description: Learn how to specify custom directories for component snippets
publishedAt: "2024-11-15"
collection: snippets
---
The generated snippets by the Chakra UI CLI are placed in the `components/ui`
directory by default.
You can specify a custom directory by running the CLI with the `--outdir` flag.
```bash
npx chakra snippets --outdir ./components/custom
```
> To learn more about the CLI snippets command, refer to the
> [CLI](/docs/get-started/cli) docs.