diff --git a/docs/app/components/server/tag/page.tsx b/docs/app/components/server/tag/page.tsx index 0606c03229..946da63543 100644 --- a/docs/app/components/server/tag/page.tsx +++ b/docs/app/components/server/tag/page.tsx @@ -1,24 +1,22 @@ -import { Default } from "@/app/components/server/tag/examples/Default"; -import { getExamples } from "@/app/utils/getExamples"; -import { MDX } from "@/components/MDX"; +import { Default } from '@/app/components/server/tag/examples/Default'; +import ExampleSection from '@/app/components/shared/ExampleSection'; +import QuickNav from '@/app/components/shared/QuickNav'; +import { getExamples } from '@/app/utils/getExamples'; +import { MDX } from '@/components/MDX'; -export default async function Home() { +export default async function Tag() { const { server } = await getExamples(); - + const examplesList = Object.keys(server.tag.examples); return ( -
-

Tag

- +
+

Tag

- -
-

Default

-
- -
-
{server.tag.examples.Default}
-
+ + } + code={server.tag.examples.Default} + />
- ) + ); } - diff --git a/workspaces/base/src/tag/Tag.tsx b/workspaces/base/src/tag/Tag.tsx index c8dc4f1c72..fb10a6babb 100644 --- a/workspaces/base/src/tag/Tag.tsx +++ b/workspaces/base/src/tag/Tag.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import mergeClassnames from '../mergeClassnames/mergeClassnames'; +import type TagProps from './private/types/TagProps'; import getFontSize from './private/utils/getFontSize'; import getIconSize from './private/utils/getIconSize'; import getSize from './private/utils/getSize'; -import type TagProps from './private/types/TagProps'; +import mergeClassnames from '../mergeClassnames/mergeClassnames'; const Tag = ({ children, @@ -17,7 +17,7 @@ const Tag = ({ }: TagProps) => (