+ );
+};
+
+export default AnimationToggle;
+```
diff --git a/apps/www/content/docs/cli.mdx b/apps/www/content/docs/cli.mdx
index 7d0b979..d55fb2f 100644
--- a/apps/www/content/docs/cli.mdx
+++ b/apps/www/content/docs/cli.mdx
@@ -24,12 +24,12 @@ pnpm dlx ruru-ui-cli@latest init
```bash
-npx ruru-ui@latest init
+npx ruru-ui-cli@latest init
```
```bash
-bunx --bun ruru-ui@latest init
+bunx --bun ruru-ui-cli@latest init
```
@@ -88,12 +88,12 @@ pnpm dlx ruru-ui-cli@latest add [component]
```bash
-npx ruru-ui@latest add [component]
+npx ruru-ui-cli@latest add [component]
```
```bash
-bunx --bun ruru-ui@latest add [component]
+bunx --bun ruru-ui-cli@latest add [component]
```
diff --git a/apps/www/content/docs/components/avatar.mdx b/apps/www/content/docs/components/avatar.mdx
index 903a52f..270685e 100644
--- a/apps/www/content/docs/components/avatar.mdx
+++ b/apps/www/content/docs/components/avatar.mdx
@@ -29,12 +29,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add avatar
+ npx ruru-ui-cli@latest add avatar
```
```bash
- bunx --bun ruru-ui@latest add avatar
+ bunx --bun ruru-ui-cli@latest add avatar
```
diff --git a/apps/www/content/docs/components/badge.mdx b/apps/www/content/docs/components/badge.mdx
index cc4bb34..5f3ccde 100644
--- a/apps/www/content/docs/components/badge.mdx
+++ b/apps/www/content/docs/components/badge.mdx
@@ -26,12 +26,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add badge
+ npx ruru-ui-cli@latest add badge
```
```bash
- bunx --bun ruru-ui@latest add badge
+ bunx --bun ruru-ui-cli@latest add badge
```
diff --git a/apps/www/content/docs/components/button.mdx b/apps/www/content/docs/components/button.mdx
index c56d79b..3f1e3a4 100644
--- a/apps/www/content/docs/components/button.mdx
+++ b/apps/www/content/docs/components/button.mdx
@@ -31,12 +31,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add button
+ npx ruru-ui-cli@latest add button
```
```bash
- bunx --bun ruru-ui@latest add button
+ bunx --bun ruru-ui-cli@latest add button
```
diff --git a/apps/www/content/docs/components/checkbox.mdx b/apps/www/content/docs/components/checkbox.mdx
index fbec83f..b78ffad 100644
--- a/apps/www/content/docs/components/checkbox.mdx
+++ b/apps/www/content/docs/components/checkbox.mdx
@@ -26,12 +26,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add checkbox
+ npx ruru-ui-cli@latest add checkbox
```
```bash
- bunx --bun ruru-ui@latest add checkbox
+ bunx --bun ruru-ui-cli@latest add checkbox
```
diff --git a/apps/www/content/docs/components/input.mdx b/apps/www/content/docs/components/input.mdx
index 1d073c2..75edf8e 100644
--- a/apps/www/content/docs/components/input.mdx
+++ b/apps/www/content/docs/components/input.mdx
@@ -26,12 +26,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add input
+ npx ruru-ui-cli@latest add input
```
```bash
- bunx --bun ruru-ui@latest add input
+ bunx --bun ruru-ui-cli@latest add input
```
diff --git a/apps/www/content/docs/components/select.mdx b/apps/www/content/docs/components/select.mdx
index 3cdd124..444d01e 100644
--- a/apps/www/content/docs/components/select.mdx
+++ b/apps/www/content/docs/components/select.mdx
@@ -20,6 +20,8 @@ import {
} from "ruru-ui/components/select";
import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
import SelectCountries from "../../../components/selectLargeData.tsx"
+import SelectAnimationVariants from "../../../components/selectAnimationVariants.tsx"
+import { Callout } from 'fumadocs-ui/components/callout';
## Installation
@@ -38,12 +40,12 @@ import SelectCountries from "../../../components/selectLargeData.tsx"
```bash
- npx ruru-ui@latest add select
+ npx ruru-ui-cli@latest add select
```
```bash
- bunx --bun ruru-ui@latest add select
+ bunx --bun ruru-ui-cli@latest add select
```
@@ -342,6 +344,23 @@ You can add scroll buttons to the `Select` component by using the `SelectScrollD
+## Select Animation Variants
+
+The `Select` component supports two animation variants: `zoom`, `scaleBounce` Etc.... You can set the animation variant by passing the `variant` prop to the `SelectContent` component.
+
+
+
+
+
+
+
+
+
+
+
+ The animation variants only work when the animation mode is turned on.
+
+
## Props
| Name | Type | Default | Description |
diff --git a/apps/www/content/docs/components/spinner.mdx b/apps/www/content/docs/components/spinner.mdx
index 6bf469c..c802026 100644
--- a/apps/www/content/docs/components/spinner.mdx
+++ b/apps/www/content/docs/components/spinner.mdx
@@ -25,12 +25,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add spinner
+ npx ruru-ui-cli@latest add spinner
```
```bash
- bunx --bun ruru-ui@latest add spinner
+ bunx --bun ruru-ui-cli@latest add spinner
```
diff --git a/apps/www/content/docs/components/switch.mdx b/apps/www/content/docs/components/switch.mdx
index 5b96e73..a6d5b0c 100644
--- a/apps/www/content/docs/components/switch.mdx
+++ b/apps/www/content/docs/components/switch.mdx
@@ -27,12 +27,12 @@ import SwiychEvent from "../../../components/SwitchEvent.tsx";
```bash
- npx ruru-ui@latest add switch
+ npx ruru-ui-cli@latest add switch
```
```bash
- bunx --bun ruru-ui@latest add switch
+ bunx --bun ruru-ui-cli@latest add switch
```
diff --git a/apps/www/content/docs/components/tabs.mdx b/apps/www/content/docs/components/tabs.mdx
index 7749d6e..2286ea5 100644
--- a/apps/www/content/docs/components/tabs.mdx
+++ b/apps/www/content/docs/components/tabs.mdx
@@ -24,12 +24,12 @@ import { Tabs, Tab } from "fumadocs-ui/components/tabs";
```bash
- npx ruru-ui@latest add tabs
+ npx ruru-ui-cli@latest add tabs
```
```bash
- bunx --bun ruru-ui@latest add tabs
+ bunx --bun ruru-ui-cli@latest add tabs
```
diff --git a/apps/www/content/docs/components/textarea.mdx b/apps/www/content/docs/components/textarea.mdx
index 44cf482..0c06252 100644
--- a/apps/www/content/docs/components/textarea.mdx
+++ b/apps/www/content/docs/components/textarea.mdx
@@ -25,12 +25,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add textarea
+ npx ruru-ui-cli@latest add textarea
```
```bash
- bunx --bun ruru-ui@latest add textarea
+ bunx --bun ruru-ui-cli@latest add textarea
```
diff --git a/apps/www/content/docs/components/tooltip.mdx b/apps/www/content/docs/components/tooltip.mdx
index 2e047e4..163063b 100644
--- a/apps/www/content/docs/components/tooltip.mdx
+++ b/apps/www/content/docs/components/tooltip.mdx
@@ -32,12 +32,12 @@ import { Tabs as Rutabs, Tab as Rutab } from "ruru-ui/components/tabs";
```bash
- npx ruru-ui@latest add tooltip
+ npx ruru-ui-cli@latest add tooltip
```
```bash
- bunx --bun ruru-ui@latest add tooltip
+ bunx --bun ruru-ui-cli@latest add tooltip
```
diff --git a/apps/www/content/docs/dark-mode.mdx b/apps/www/content/docs/dark-mode.mdx
index dd94b8f..71a85a9 100644
--- a/apps/www/content/docs/dark-mode.mdx
+++ b/apps/www/content/docs/dark-mode.mdx
@@ -3,6 +3,33 @@ title: Dark Mode
description: How to enable dark mode in your app.
---
-import { Callout } from "fumadocs-ui/components/callout";
+import { Callout } from 'fumadocs-ui/components/callout';
-
+
+ Will change the components soon. will batter UI
+
+
+## Dark Mode
+
+```tsx title="DarkModeToggle.tsx"
+// [!code word:useTheme]
+// [!code word:setTheme]
+"use client";
+
+import * as React from "react";
+import { useTheme } from "@/provider/theme"; // [!code highlight]
+
+import { Button } from "@/components/ui/button";
+
+export function ModeToggle() {
+ const { setTheme } = useTheme(); // [!code highlight]
+
+ return (
+
+
+
+
+
+ );
+}
+```
\ No newline at end of file
diff --git a/apps/www/content/docs/hooks.mdx b/apps/www/content/docs/hooks.mdx
new file mode 100644
index 0000000..74bf705
--- /dev/null
+++ b/apps/www/content/docs/hooks.mdx
@@ -0,0 +1,42 @@
+---
+title: Hooks
+description: Hooks are a new addition in React 16.8 that let you use state and other React features without writing a class.
+---
+
+### useRuru
+
+The `useRuru` hook is used to provide a context to all components in the tree.
+
+```tsx title="layout.tsx"
+// [!code word:useRuru]
+"use client";
+
+import React from "react";
+import { Switch } from "ruru-ui/components/switch";
+import { useRuru } from "ruru-ui/provider";
+
+const AnimationToggle = () => {
+ const { setAnimation } = useRuru();
+ return (
+