Skip to content

Commit

Permalink
Fix documentation primitive import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rodleviton committed Nov 21, 2023
1 parent ef68440 commit 35af2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/pages/in-depth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ base styles to. For example, our button component primitive only has a `root`
handle, so therefore all our styles will be defined on the `root` key.

```tsx copy showLineNumbers {4-22} filename="components/ui/button.ts"
import { ButtonPrimitive } from "@/components/primitives/button";
import ButtonPrimitive from "@/components/primitives/button";

export const Button = ButtonPrimitive.recast({
base: {
Expand Down Expand Up @@ -250,7 +250,7 @@ will start to form your button theme API.
```tsx copy showLineNumbers {7-24} filename="components/ui/button.ts"
"use client";

import { ButtonPrimitive } from "@/components/primitives/button";
import ButtonPrimitive from "@/components/primitives/button";

export const Button = ButtonPrimitive.recast({
/* ... */
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/pages/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ props that can be applied to a component.
```tsx copy showLineNumbers filename="components/ui/button.ts"
"use client";

import { ButtonPrimitive } from "@/components/primitives/button";
import ButtonPrimitive from "@/components/primitives/button";

export const Button = ButtonPrimitive.recast({
defaults: {
Expand Down

0 comments on commit 35af2d5

Please sign in to comment.