From 35af2d57ce16ab5e4d50a8356d2493e17c584782 Mon Sep 17 00:00:00 2001 From: Rodney Leviton Date: Tue, 21 Nov 2023 14:44:03 +1100 Subject: [PATCH] Fix documentation primitive import paths --- packages/docs/src/pages/in-depth.mdx | 4 ++-- packages/docs/src/pages/quick-start.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/docs/src/pages/in-depth.mdx b/packages/docs/src/pages/in-depth.mdx index b0aba84..9cc3d7a 100644 --- a/packages/docs/src/pages/in-depth.mdx +++ b/packages/docs/src/pages/in-depth.mdx @@ -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: { @@ -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({ /* ... */ diff --git a/packages/docs/src/pages/quick-start.mdx b/packages/docs/src/pages/quick-start.mdx index e873f93..9ac5cc1 100644 --- a/packages/docs/src/pages/quick-start.mdx +++ b/packages/docs/src/pages/quick-start.mdx @@ -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: {