```ts title="tailwind.config.ts"
- import type { Config } from "tailwindcss";
+ import type { Config } from 'tailwindcss';
const config: Config = {
- darkMode: "class",
+ darkMode: 'class',
content: [
- "...",
+ '...',
],
theme: {
// ...
@@ -99,95 +99,95 @@ description: How to set up Kõsori UI in your Next.js project.
// ...
// [!code highlight:15]
colors: {
- "primary-base": "hsl(var(--primary-1))",
- "primary-bg-subtle": "hsl(var(--primary-2))",
- "primary-bg": "hsl(var(--primary-3))",
- "primary-bg-hover": "hsl(var(--primary-4))",
- "primary-bg-active": "hsl(var(--primary-5))",
- "primary-line": "hsl(var(--primary-6))",
- "primary-border": "hsl(var(--primary-7))",
- "primary-border-hover": "hsl(var(--primary-8))",
- "primary-focus-ring": "hsl(var(--primary-8))",
- "primary-solid": "hsl(var(--primary-9))",
- "primary-solid-hover": "hsl(var(--primary-10))",
- "primary-text": "hsl(var(--primary-11))",
- "primary-text-contrast": "hsl(var(--primary-12))",
+ 'primary-base': 'hsl(var(--primary-1))',
+ 'primary-bg-subtle': 'hsl(var(--primary-2))',
+ 'primary-bg': 'hsl(var(--primary-3))',
+ 'primary-bg-hover': 'hsl(var(--primary-4))',
+ 'primary-bg-active': 'hsl(var(--primary-5))',
+ 'primary-line': 'hsl(var(--primary-6))',
+ 'primary-border': 'hsl(var(--primary-7))',
+ 'primary-border-hover': 'hsl(var(--primary-8))',
+ 'primary-focus-ring': 'hsl(var(--primary-8))',
+ 'primary-solid': 'hsl(var(--primary-9))',
+ 'primary-solid-hover': 'hsl(var(--primary-10))',
+ 'primary-text': 'hsl(var(--primary-11))',
+ 'primary-text-contrast': 'hsl(var(--primary-12))',
// [!code highlight:14]
- "success-base": "hsl(var(--success-1))",
- "success-bg-subtle": "hsl(var(--success-2))",
- "success-bg": "hsl(var(--success-3))",
- "success-bg-hover": "hsl(var(--success-4))",
- "success-bg-active": "hsl(var(--success-5))",
- "success-line": "hsl(var(--success-6))",
- "success-border": "hsl(var(--success-7))",
- "success-border-hover": "hsl(var(--success-8))",
- "success-focus-ring": "hsl(var(--success-8))",
- "success-solid": "hsl(var(--success-9))",
- "success-solid-hover": "hsl(var(--success-10))",
- "success-text": "hsl(var(--success-11))",
- "success-text-contrast": "hsl(var(--success-12))",
+ 'success-base': 'hsl(var(--success-1))',
+ 'success-bg-subtle': 'hsl(var(--success-2))',
+ 'success-bg': 'hsl(var(--success-3))',
+ 'success-bg-hover': 'hsl(var(--success-4))',
+ 'success-bg-active': 'hsl(var(--success-5))',
+ 'success-line': 'hsl(var(--success-6))',
+ 'success-border': 'hsl(var(--success-7))',
+ 'success-border-hover': 'hsl(var(--success-8))',
+ 'success-focus-ring': 'hsl(var(--success-8))',
+ 'success-solid': 'hsl(var(--success-9))',
+ 'success-solid-hover': 'hsl(var(--success-10))',
+ 'success-text': 'hsl(var(--success-11))',
+ 'success-text-contrast': 'hsl(var(--success-12))',
// [!code highlight:14]
- "warning-base": "hsl(var(--warning-1))",
- "warning-bg-subtle": "hsl(var(--warning-2))",
- "warning-bg": "hsl(var(--warning-3))",
- "warning-bg-hover": "hsl(var(--warning-4))",
- "warning-bg-active": "hsl(var(--warning-5))",
- "warning-line": "hsl(var(--warning-6))",
- "warning-border": "hsl(var(--warning-7))",
- "warning-border-hover": "hsl(var(--warning-8))",
- "warning-focus-ring": "hsl(var(--warning-8))",
- "warning-solid": "hsl(var(--warning-9))",
- "warning-solid-hover": "hsl(var(--warning-10))",
- "warning-text": "hsl(var(--warning-11))",
- "warning-text-contrast": "hsl(var(--warning-12))",
+ 'warning-base': 'hsl(var(--warning-1))',
+ 'warning-bg-subtle': 'hsl(var(--warning-2))',
+ 'warning-bg': 'hsl(var(--warning-3))',
+ 'warning-bg-hover': 'hsl(var(--warning-4))',
+ 'warning-bg-active': 'hsl(var(--warning-5))',
+ 'warning-line': 'hsl(var(--warning-6))',
+ 'warning-border': 'hsl(var(--warning-7))',
+ 'warning-border-hover': 'hsl(var(--warning-8))',
+ 'warning-focus-ring': 'hsl(var(--warning-8))',
+ 'warning-solid': 'hsl(var(--warning-9))',
+ 'warning-solid-hover': 'hsl(var(--warning-10))',
+ 'warning-text': 'hsl(var(--warning-11))',
+ 'warning-text-contrast': 'hsl(var(--warning-12))',
// [!code highlight:14]
- "error-base": "hsl(var(--danger-1))",
- "error-bg-subtle": "hsl(var(--danger-2))",
- "error-bg": "hsl(var(--danger-3))",
- "error-bg-hover": "hsl(var(--danger-4))",
- "error-bg-active": "hsl(var(--danger-5))",
- "error-line": "hsl(var(--danger-6))",
- "error-border": "hsl(var(--danger-7))",
- "error-border-hover": "hsl(var(--danger-8))",
- "error-focus-ring": "hsl(var(--danger-8))",
- "error-solid": "hsl(var(--danger-9))",
- "error-solid-hover": "hsl(var(--danger-10))",
- "error-text": "hsl(var(--danger-11))",
- "error-text-contrast": "hsl(var(--danger-12))",
+ 'error-base': 'hsl(var(--danger-1))',
+ 'error-bg-subtle': 'hsl(var(--danger-2))',
+ 'error-bg': 'hsl(var(--danger-3))',
+ 'error-bg-hover': 'hsl(var(--danger-4))',
+ 'error-bg-active': 'hsl(var(--danger-5))',
+ 'error-line': 'hsl(var(--danger-6))',
+ 'error-border': 'hsl(var(--danger-7))',
+ 'error-border-hover': 'hsl(var(--danger-8))',
+ 'error-focus-ring': 'hsl(var(--danger-8))',
+ 'error-solid': 'hsl(var(--danger-9))',
+ 'error-solid-hover': 'hsl(var(--danger-10))',
+ 'error-text': 'hsl(var(--danger-11))',
+ 'error-text-contrast': 'hsl(var(--danger-12))',
// [!code highlight:14]
- "info-base": "hsl(var(--info-1))",
- "info-bg-subtle": "hsl(var(--info-2))",
- "info-bg": "hsl(var(--info-3))",
- "info-bg-hover": "hsl(var(--info-4))",
- "info-bg-active": "hsl(var(--info-5))",
- "info-line": "hsl(var(--info-6))",
- "info-border": "hsl(var(--info-7))",
- "info-border-hover": "hsl(var(--info-8))",
- "info-focus-ring": "hsl(var(--info-8))",
- "info-solid": "hsl(var(--info-9))",
- "info-solid-hover": "hsl(var(--info-10))",
- "info-text": "hsl(var(--info-11))",
- "info-text-contrast": "hsl(var(--info-12))",
+ 'info-base': 'hsl(var(--info-1))',
+ 'info-bg-subtle': 'hsl(var(--info-2))',
+ 'info-bg': 'hsl(var(--info-3))',
+ 'info-bg-hover': 'hsl(var(--info-4))',
+ 'info-bg-active': 'hsl(var(--info-5))',
+ 'info-line': 'hsl(var(--info-6))',
+ 'info-border': 'hsl(var(--info-7))',
+ 'info-border-hover': 'hsl(var(--info-8))',
+ 'info-focus-ring': 'hsl(var(--info-8))',
+ 'info-solid': 'hsl(var(--info-9))',
+ 'info-solid-hover': 'hsl(var(--info-10))',
+ 'info-text': 'hsl(var(--info-11))',
+ 'info-text-contrast': 'hsl(var(--info-12))',
// [!code highlight:15]
- "grey-base": "hsl(var(--grey-1))",
- "grey-bg-subtle": "hsl(var(--grey-2))",
- "grey-bg": "hsl(var(--grey-3))",
- "grey-bg-hover": "hsl(var(--grey-4))",
- "grey-bg-active": "hsl(var(--grey-5))",
- "grey-line": "hsl(var(--grey-6))",
- "grey-border": "hsl(var(--grey-7))",
- "grey-border-hover": "hsl(var(--grey-8))",
- "grey-focus-ring": "hsl(var(--grey-8))",
- "grey-solid": "hsl(var(--grey-9))",
- "grey-placeholder-text": "hsl(var(--grey-9))",
- "grey-solid-hover": "hsl(var(--grey-10))",
- "grey-text": "hsl(var(--grey-11))",
- "grey-text-contrast": "hsl(var(--grey-12))",
+ 'grey-base': 'hsl(var(--grey-1))',
+ 'grey-bg-subtle': 'hsl(var(--grey-2))',
+ 'grey-bg': 'hsl(var(--grey-3))',
+ 'grey-bg-hover': 'hsl(var(--grey-4))',
+ 'grey-bg-active': 'hsl(var(--grey-5))',
+ 'grey-line': 'hsl(var(--grey-6))',
+ 'grey-border': 'hsl(var(--grey-7))',
+ 'grey-border-hover': 'hsl(var(--grey-8))',
+ 'grey-focus-ring': 'hsl(var(--grey-8))',
+ 'grey-solid': 'hsl(var(--grey-9))',
+ 'grey-placeholder-text': 'hsl(var(--grey-9))',
+ 'grey-solid-hover': 'hsl(var(--grey-10))',
+ 'grey-text': 'hsl(var(--grey-11))',
+ 'grey-text-contrast': 'hsl(var(--grey-12))',
},
},
},
@@ -207,9 +207,9 @@ description: How to set up Kõsori UI in your Next.js project.
```ts title="tailwind.config.ts"
const config: Config = {
- darkMode: "class",
+ darkMode: 'class',
content: [
- "...",
+ '...',
],
theme: {
// ...
@@ -217,23 +217,23 @@ description: How to set up Kõsori UI in your Next.js project.
// ...
// [!code highlight:20]
keyframes: {
- "accordion-down": {
- from: { height: "0" },
- to: { height: "var(--radix-accordion-content-height)" },
+ 'accordion-down': {
+ from: { height: '0' },
+ to: { height: 'var(--radix-accordion-content-height)' },
},
- "accordion-up": {
- from: { height: "var(--radix-accordion-content-height)" },
- to: { height: "0" },
+ 'accordion-up': {
+ from: { height: 'var(--radix-accordion-content-height)' },
+ to: { height: '0' },
},
- "caret-blink": {
- "0%,70%,100%": { opacity: "1" },
- "20%,50%": { opacity: "0" },
+ 'caret-blink': {
+ '0%,70%,100%': { opacity: '1' },
+ '20%,50%': { opacity: '0' },
},
},
animation: {
- "accordion-down": "accordion-down 0.2s ease-out",
- "accordion-up": "accordion-up 0.2s ease-out",
- "caret-blink": "caret-blink 1.25s ease-out infinite",
+ 'accordion-down': 'accordion-down 0.2s ease-out',
+ 'accordion-up': 'accordion-up 0.2s ease-out',
+ 'caret-blink': 'caret-blink 1.25s ease-out infinite',
},
},
},
@@ -248,8 +248,8 @@ description: How to set up Kõsori UI in your Next.js project.
Add the `tailwindcss-animate` plugin to your Tailwind CSS config.
```ts title="tailwind.config.ts"
- import type { Config } from "tailwindcss";
- import animate from "tailwindcss-animate"; // [!code highlight]
+ import type { Config } from 'tailwindcss';
+ import animate from 'tailwindcss-animate'; // [!code highlight]
const config: Config = {
// ...,
@@ -478,9 +478,9 @@ description: How to set up Kõsori UI in your Next.js project.
Create the `cn()` utility function.
```ts title="app/utils/cn.ts"
- import type { ClassValue } from "clsx";
- import { clsx } from "clsx";
- import { twMerge } from "tailwind-merge";
+ import type { ClassValue } from 'clsx';
+ import { clsx } from 'clsx';
+ import { twMerge } from 'tailwind-merge';
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
```
diff --git a/apps/www/content/docs/ui/label.mdx b/apps/www/content/docs/ui/label.mdx
index 01629af0..d6f80bd9 100644
--- a/apps/www/content/docs/ui/label.mdx
+++ b/apps/www/content/docs/ui/label.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-label
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-label` package.
-
+ ```package-install
+ @radix-ui/react-label
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/label.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/label.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/menubar.mdx b/apps/www/content/docs/ui/menubar.mdx
index a7213164..b28df98e 100644
--- a/apps/www/content/docs/ui/menubar.mdx
+++ b/apps/www/content/docs/ui/menubar.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-menubar
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-menubar` package.
-
+ ```package-install
+ @radix-ui/react-menubar
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/menubar.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/menubar.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/navigation-menu.mdx b/apps/www/content/docs/ui/navigation-menu.mdx
index e9720c50..2a6b72f8 100644
--- a/apps/www/content/docs/ui/navigation-menu.mdx
+++ b/apps/www/content/docs/ui/navigation-menu.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-navigation-menu
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-navigation-menu` package.
-
+ ```package-install
+ @radix-ui/react-navigation-menu
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/navigation-menu.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/navigation-menu.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/pagination.mdx b/apps/www/content/docs/ui/pagination.mdx
index 5d62829c..936fddaa 100644
--- a/apps/www/content/docs/ui/pagination.mdx
+++ b/apps/www/content/docs/ui/pagination.mdx
@@ -14,18 +14,34 @@ description: Pagination with page navigation, next and previous links.
## Installation
-Copy-paste the component code in a `.tsx` file.
+
-
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/pagination.tsx",
- "codeblock": true
-}
-```
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/pagination.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/popover.mdx b/apps/www/content/docs/ui/popover.mdx
index 7253b5de..c2e3831e 100644
--- a/apps/www/content/docs/ui/popover.mdx
+++ b/apps/www/content/docs/ui/popover.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-popover
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-popover` package.
-
+ ```package-install
+ @radix-ui/react-popover
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/popover.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/popover.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/progress.mdx b/apps/www/content/docs/ui/progress.mdx
index 4d182db0..3ec21ede 100644
--- a/apps/www/content/docs/ui/progress.mdx
+++ b/apps/www/content/docs/ui/progress.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-progress
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-progress` package.
-
+ ```package-install
+ @radix-ui/react-progress
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/progress.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/progress.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/radio-group.mdx b/apps/www/content/docs/ui/radio-group.mdx
index 79756c89..13ff6f8d 100644
--- a/apps/www/content/docs/ui/radio-group.mdx
+++ b/apps/www/content/docs/ui/radio-group.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-radio-group
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-radio-group` package.
-
+ ```package-install
+ @radix-ui/react-radio-group
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/radio-group.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/radio-group.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/resizable.mdx b/apps/www/content/docs/ui/resizable.mdx
index af6eee2f..accc4e23 100644
--- a/apps/www/content/docs/ui/resizable.mdx
+++ b/apps/www/content/docs/ui/resizable.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-react-resizable-panels
-```
+
+ ### Install the primitive
+
+ Install the `react-resizable-panels` package.
-
+ ```package-install
+ react-resizable-panels
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/resizable.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/resizable.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/scroll-area.mdx b/apps/www/content/docs/ui/scroll-area.mdx
index c4a1e03a..586232b4 100644
--- a/apps/www/content/docs/ui/scroll-area.mdx
+++ b/apps/www/content/docs/ui/scroll-area.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-scroll-area
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-scroll-area` package.
-
+ ```package-install
+ @radix-ui/react-scroll-area
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/scroll-area.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/scroll-area.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/select.mdx b/apps/www/content/docs/ui/select.mdx
index 61f71db4..956b781d 100644
--- a/apps/www/content/docs/ui/select.mdx
+++ b/apps/www/content/docs/ui/select.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-select
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-select` package.
-
+ ```package-install
+ @radix-ui/react-select
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/select.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/select.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/separator.mdx b/apps/www/content/docs/ui/separator.mdx
index fa18eeec..08cbbd44 100644
--- a/apps/www/content/docs/ui/separator.mdx
+++ b/apps/www/content/docs/ui/separator.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-separator
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-separator` package.
-
+ ```package-install
+ @radix-ui/react-separator
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/separator.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/separator.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/sheet.mdx b/apps/www/content/docs/ui/sheet.mdx
index 05a51b4c..e69693de 100644
--- a/apps/www/content/docs/ui/sheet.mdx
+++ b/apps/www/content/docs/ui/sheet.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-dialog
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-dialog` package.
-
+ ```package-install
+ @radix-ui/react-dialog
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/sheet.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/sheet.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/skeleton.mdx b/apps/www/content/docs/ui/skeleton.mdx
index fc25e80a..2af241e9 100644
--- a/apps/www/content/docs/ui/skeleton.mdx
+++ b/apps/www/content/docs/ui/skeleton.mdx
@@ -14,18 +14,34 @@ description: Use to show a placeholder while content is loading.
## Installation
-Copy-paste the component code in a `.tsx` file.
+
-
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/skeleton.tsx",
- "codeblock": true
-}
-```
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/skeleton.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/slider.mdx b/apps/www/content/docs/ui/slider.mdx
index 8c8a3c26..38d7c9f0 100644
--- a/apps/www/content/docs/ui/slider.mdx
+++ b/apps/www/content/docs/ui/slider.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-slider
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-slider` package.
-
+ ```package-install
+ @radix-ui/react-slider
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/slider.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/slider.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/sonner.mdx b/apps/www/content/docs/ui/sonner.mdx
index bc5b9658..d010684a 100644
--- a/apps/www/content/docs/ui/sonner.mdx
+++ b/apps/www/content/docs/ui/sonner.mdx
@@ -20,40 +20,68 @@ Sonner is built and maintained by [@emilkowalski\_](https://x.com/emilkowalski_)
## Installation
-Install the following dependencies and copy-paste the component code in a `.tsx` file.
+
-```package-install
-sonner next-themes
-```
+
+ ### Install the dependencies
+
+ Install the `sonner` and `next-themes` package.
-
+ ```package-install
+ sonner next-themes
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/sonner.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-
+
-Add the `` component.
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/sonner.tsx",
+ "codeblock": true
+ }
+ ```
-```tsx title="app/layout.tsx"
-import { Toaster } from '~/components/ui/sonner'; // [!code highlight]
+
-export default const RootLayout = ({ children }) => {
- return (
-
-
-
- {children}
- // [!code highlight]
-
-
- );
-}
-```
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
+
+
+ ### Add Toaster component
+
+ Add the `` component to the root of your app.
+
+ ```tsx title="app/layout.tsx"
+ import { Toaster } from '~/components/ui/sonner'; // [!code highlight]
+
+ export default const RootLayout = ({ children }) => {
+ return (
+
+
+
+ {children}
+ // [!code highlight]
+
+
+ );
+ }
+ ```
+
+
+
+
## Usage
diff --git a/apps/www/content/docs/ui/switch.mdx b/apps/www/content/docs/ui/switch.mdx
index 63bd73d2..5807f4a7 100644
--- a/apps/www/content/docs/ui/switch.mdx
+++ b/apps/www/content/docs/ui/switch.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-switch
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-switch` package.
-
+ ```package-install
+ @radix-ui/react-switch
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/switch.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/switch.tsx",
+ "codeblock": true
+ }
+ ```
-
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
+
+
## Usage
@@ -44,6 +67,19 @@ import { Switch } from '~/components/ui/switch';
```
+## Reference
+
+
+
## Examples
### Sizes
diff --git a/apps/www/content/docs/ui/table.mdx b/apps/www/content/docs/ui/table.mdx
index cddcae0b..f83689a5 100644
--- a/apps/www/content/docs/ui/table.mdx
+++ b/apps/www/content/docs/ui/table.mdx
@@ -14,18 +14,34 @@ description: A responsive table component.
## Installation
-Copy-paste the component code in a `.tsx` file.
+
-
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/table.tsx",
- "codeblock": true
-}
-```
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/table.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/tabs.mdx b/apps/www/content/docs/ui/tabs.mdx
index e13a55b8..e91c8360 100644
--- a/apps/www/content/docs/ui/tabs.mdx
+++ b/apps/www/content/docs/ui/tabs.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-tabs
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-tabs` package.
-
+ ```package-install
+ @radix-ui/react-tabs
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/tabs.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/tabs.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/textarea.mdx b/apps/www/content/docs/ui/textarea.mdx
index 7bc6d79c..d2d72b3e 100644
--- a/apps/www/content/docs/ui/textarea.mdx
+++ b/apps/www/content/docs/ui/textarea.mdx
@@ -14,18 +14,34 @@ description: Displays a form textarea or a component that looks like a textarea.
## Installation
-Copy-paste the component code in a `.tsx` file.
+
-
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/textarea.tsx",
- "codeblock": true
-}
-```
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/textarea.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage
diff --git a/apps/www/content/docs/ui/toast.mdx b/apps/www/content/docs/ui/toast.mdx
index 2ed36443..01ba0204 100644
--- a/apps/www/content/docs/ui/toast.mdx
+++ b/apps/www/content/docs/ui/toast.mdx
@@ -17,40 +17,68 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-toast
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-toast` package.
-
+ ```package-install
+ @radix-ui/react-toast
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/toast.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
-
+
-Add the `` component.
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/toast.tsx",
+ "codeblock": true
+ }
+ ```
-```tsx title="app/layout.tsx"
-import { Toaster } from '~/components/ui/toast'; // [!code highlight]
+
-export default const RootLayout = ({ children }) => {
- return (
-
-
-
- {children}
- // [!code highlight]
-
-
- );
-}
-```
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
+
+
+ ### Add Toaster component
+
+ Add the `` component to the root of your app.
+
+ ```tsx title="app/layout.tsx"
+ import { Toaster } from '~/components/ui/toast'; // [!code highlight]
+
+ export default const RootLayout = ({ children }) => {
+ return (
+
+
+
+ {children}
+ // [!code highlight]
+
+
+ );
+ }
+ ```
+
+
+
+
## Usage
@@ -83,6 +111,19 @@ export const ToastDemo = () => {
in `toast.tsx`.
+## Reference
+
+
+
## Examples
### Intents
diff --git a/apps/www/content/docs/ui/toggle-group.mdx b/apps/www/content/docs/ui/toggle-group.mdx
index d3151e96..880fff5a 100644
--- a/apps/www/content/docs/ui/toggle-group.mdx
+++ b/apps/www/content/docs/ui/toggle-group.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-toggle-group
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-toggle-group` package.
-
+ ```package-install
+ @radix-ui/react-toggle-group
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/toggle-group.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
-
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/toggle-group.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
+
+
## Usage
@@ -48,6 +71,25 @@ import { ToggleGroup, ToggleGroupItem } from '~/components/ui/toggle-group';
```
+## Reference
+
+
+
## Examples
### Variants
diff --git a/apps/www/content/docs/ui/toggle.mdx b/apps/www/content/docs/ui/toggle.mdx
index 6359199f..dd7e2ea0 100644
--- a/apps/www/content/docs/ui/toggle.mdx
+++ b/apps/www/content/docs/ui/toggle.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-toggle
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-toggle` package.
-
+ ```package-install
+ @radix-ui/react-toggle
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/toggle.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
-
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/toggle.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
+
+
## Usage
@@ -44,6 +67,25 @@ import { Toggle } from '~/components/ui/toggle';
Toggle
```
+## Reference
+
+
+
## Examples
### Variants
diff --git a/apps/www/content/docs/ui/tooltip.mdx b/apps/www/content/docs/ui/tooltip.mdx
index 61f29904..b8c93022 100644
--- a/apps/www/content/docs/ui/tooltip.mdx
+++ b/apps/www/content/docs/ui/tooltip.mdx
@@ -17,22 +17,45 @@ links:
## Installation
-Install the primitive and copy-paste the component code in a `.tsx` file.
+
-```package-install
-@radix-ui/react-tooltip
-```
+
+ ### Install the primitive
+
+ Install the `@radix-ui/react-tooltip` package.
-
+ ```package-install
+ @radix-ui/react-tooltip
+ ```
-```json doc-gen:file
-{
- "file": "../../packages/ui/src/tooltip.tsx",
- "codeblock": true
-}
-```
+
+
+
+ ### Copy-paste the component
+
+ Copy and paste the component code in a `.tsx` file.
+
+
+
+ ```json doc-gen:file
+ {
+ "file": "../../packages/ui/src/tooltip.tsx",
+ "codeblock": true
+ }
+ ```
+
+
+
+
+
+
+ ### Update import paths
+
+ Update the `@kosori/ui` import paths to fit your project structure, for example, using `~/components/ui`.
+
+
-
+
## Usage