diff --git a/apps/landing/src/app/(detail)/docs/core-concepts/nm-base/page.mdx b/apps/landing/src/app/(detail)/docs/core-concepts/nm-base/page.mdx index c8b683b8..0676df4d 100644 --- a/apps/landing/src/app/(detail)/docs/core-concepts/nm-base/page.mdx +++ b/apps/landing/src/app/(detail)/docs/core-concepts/nm-base/page.mdx @@ -1,3 +1,5 @@ +import { ExampleGrid } from '@/components/mdx/components/ExampleGrid' + export const metadata = { title: 'N/M Base', alternates: { @@ -48,15 +50,7 @@ Class name generation follows these steps: ### **Basic Class Names** -
+
```tsx // Input
@@ -75,19 +69,11 @@ Class name generation follows these steps:
```
-
+ ### **Responsive Class Names** -
+
```tsx // Input @@ -99,19 +85,11 @@ Class name generation follows these steps: {/* w: 100px, w: 200px, w: 300px */} ```
-
+ ### **Pseudo-selector Class Names** -
+
```tsx @@ -123,19 +101,11 @@ Class name generation follows these steps: {/* .g:hover { background: red; } */} ```
-
+ ### **File-specific Class Names** -
+
```tsx
@@ -152,7 +122,7 @@ Class name generation follows these steps:
```
-
+ ## Ad-blocker Compatibility diff --git a/apps/landing/src/components/mdx/components/ExampleGrid.tsx b/apps/landing/src/components/mdx/components/ExampleGrid.tsx new file mode 100644 index 00000000..a01466f4 --- /dev/null +++ b/apps/landing/src/components/mdx/components/ExampleGrid.tsx @@ -0,0 +1,14 @@ +import { Grid } from '@devup-ui/react' +import { ReactNode } from 'react' + +interface ExampleGridProps { + children: ReactNode +} + +export function ExampleGrid({ children }: ExampleGridProps) { + return ( + + {children} + + ) +}