docs: add usage
This commit is contained in:
parent
ecac6e5284
commit
17d1bf065e
2 changed files with 14 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { log } from "@repo/logger";
|
import { log } from "@repo/logger";
|
||||||
import { Link } from "@repo/ui/link/index.js";
|
import { Link } from "@repo/ui/link";
|
||||||
import { CounterButton } from "@repo/ui/counter-button/index.js";
|
import { CounterButton } from "@repo/ui/counter-button";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "Store | Kitchen Sink",
|
title: "Store | Kitchen Sink",
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,18 @@ Although not required, adding:
|
||||||
|
|
||||||
in the `tsconfig.json` file of **each app** can help with TypeScript path resolution during development.
|
in the `tsconfig.json` file of **each app** can help with TypeScript path resolution during development.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
To use the UI components in your app, you can import them as follows:
|
||||||
|
|
||||||
|
```tsx
|
||||||
|
// React UI library components
|
||||||
|
import { CounterButton } from "@repo/ui/counter-button";
|
||||||
|
|
||||||
|
// shadcn/ui components
|
||||||
|
import { Card } from "@repo/ui/components/card";
|
||||||
|
```
|
||||||
|
|
||||||
### More Information
|
### More Information
|
||||||
|
|
||||||
#### [shadcn/ui](https://ui.shadcn.com/docs/monorepo) for UI components
|
#### [shadcn/ui](https://ui.shadcn.com/docs/monorepo) for UI components
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue