Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: Update border beam API (#541)

Dillion Verma0a5536ac4e3e
diff --git a/__registry__/index.tsx b/__registry__/index.tsx
index c6a9e316..56023b26 100644
--- a/__registry__/index.tsx
+++ b/__registry__/index.tsx
@@ -2877,6 +2877,100 @@ export const Index: Record<string, any> = {
}),
meta: undefined,
},
+ "border-beam-demo-2": {
+ name: "border-beam-demo-2",
+ description: "Example showing an animated border beam effect.",
+ type: "registry:example",
+ registryDependencies: [
+ "button",
+ "card",
+ "https://magicui.design/r/border-beam",
+ ],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-2.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-2.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/border-beam-demo-2.tsx");
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object",
+ ) || item.name;
+ return { default: mod.default || mod[exportName] };
+ }),
+ meta: undefined,
+ },
+ "border-beam-demo-3": {
+ name: "border-beam-demo-3",
+ description: "Example showing an animated border beam effect.",
+ type: "registry:example",
+ registryDependencies: [
+ "button",
+ "card",
+ "input",
+ "label",
+ "https://magicui.design/r/border-beam",
+ ],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-3.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-3.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/border-beam-demo-3.tsx");
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object",
+ ) || item.name;
+ return { default: mod.default || mod[exportName] };
+ }),
+ meta: undefined,
+ },
+ "border-beam-demo-4": {
+ name: "border-beam-demo-4",
+ description: "Example showing an animated border beam effect.",
+ type: "registry:example",
+ registryDependencies: ["button", "https://magicui.design/r/border-beam"],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-4.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-4.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/border-beam-demo-4.tsx");
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object",
+ ) || item.name;
+ return { default: mod.default || mod[exportName] };
+ }),
+ meta: undefined,
+ },
"animated-beam-demo": {
name: "animated-beam-demo",
description: "Example showing an animated beam of light effect.",
diff --git a/components/mdx-components.tsx b/components/mdx-components.tsx
index 331618c2..b500e84d 100644
--- a/components/mdx-components.tsx
+++ b/components/mdx-components.tsx
@@ -281,7 +281,7 @@ const components = {
code: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (
<code
className={cn(
- "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm dark:bg-zinc-800 dark:text-zinc-50",
+ "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm",
className,
)}
{...props}
diff --git a/components/ui/card.tsx b/components/ui/card.tsx
index e102126a..5f5f043b 100644
--- a/components/ui/card.tsx
+++ b/components/ui/card.tsx
@@ -8,10 +8,7 @@ const Card = React.forwardRef<
>(({ className, ...props }, ref) => (
<div
ref={ref}
- className={cn(
- "rounded-xl border bg-card text-card-foreground shadow",
- className,
- )}
+ className={cn("rounded-xl border bg-card text-card-foreground", className)}
{...props}
/>
));
@@ -75,9 +72,9 @@ CardFooter.displayName = "CardFooter";
export {
Card,
- CardHeader,
+ CardContent,
+ CardDescription,
CardFooter,
+ CardHeader,
CardTitle,
- CardDescription,
- CardContent,
};
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
new file mode 100644
index 00000000..5e316e43
--- /dev/null
+++ b/components/ui/select.tsx
@@ -0,0 +1,162 @@
+"use client";
+
+import * as React from "react";
+import * as SelectPrimitive from "@radix-ui/react-select";
+import { cn } from "@/lib/utils";
+import {
+ CheckIcon,
+ ChevronDownIcon,
+ ChevronUpIcon,
+} from "@radix-ui/react-icons";
+
+const Select = SelectPrimitive.Root;
+
+const SelectGroup = SelectPrimitive.Group;
+
+const SelectValue = SelectPrimitive.Value;
+
+const SelectTrigger = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDownIcon className="h-4 w-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+));
+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
+
+const SelectScrollUpButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollUpButton
+ ref={ref}
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className,
+ )}
+ {...props}
+ >
+ <ChevronUpIcon className="h-4 w-4" />
+ </SelectPrimitive.ScrollUpButton>
+));
+SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
+
+const SelectScrollDownButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollDownButton
+ ref={ref}
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className,
+ )}
+ {...props}
+ >
+ <ChevronDownIcon className="h-4 w-4" />
+ </SelectPrimitive.ScrollDownButton>
+));
+SelectScrollDownButton.displayName =
+ SelectPrimitive.ScrollDownButton.displayName;
+
+const SelectContent = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
+>(({ className, children, position = "popper", ...props }, ref) => (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ ref={ref}
+ className={cn(
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className,
+ )}
+ position={position}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+));
+SelectContent.displayName = SelectPrimitive.Content.displayName;
+
+const SelectLabel = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Label
+ ref={ref}
+ className={cn("px-2 py-1.5 text-sm font-semibold", className)}
+ {...props}
+ />
+));
+SelectLabel.displayName = SelectPrimitive.Label.displayName;
+
+const SelectItem = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <CheckIcon className="h-4 w-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+));
+SelectItem.displayName = SelectPrimitive.Item.displayName;
+
+const SelectSeparator = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Separator
+ ref={ref}
+ className={cn("-mx-1 my-1 h-px bg-muted", className)}
+ {...props}
+ />
+));
+SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
+
+export {
+ Select,
+ SelectGroup,
+ SelectValue,
+ SelectTrigger,
+ SelectContent,
+ SelectLabel,
+ SelectItem,
+ SelectSeparator,
+ SelectScrollUpButton,
+ SelectScrollDownButton,
+};
diff --git a/content/docs/components/border-beam.mdx b/content/docs/components/border-beam.mdx
index 458c7b95..541e6190 100644
--- a/content/docs/components/border-beam.mdx
+++ b/content/docs/components/border-beam.mdx
@@ -33,38 +33,26 @@ npx shadcn@latest add "https://magicui.design/r/border-beam"
<ComponentSource name="border-beam" />
-<Step>Update the import paths to match your project setup.</Step>
-
-<Step>Update `tailwind.config.js`</Step>
-
-Add the following animations to your `tailwind.config.js` file:
-
-```js title="tailwind.config.js" {5-14}
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- theme: {
- extend: {
- animation: {
- "border-beam": "border-beam calc(var(--duration)*1s) infinite linear",
- },
- keyframes: {
- "border-beam": {
- "100%": {
- "offset-distance": "100%",
- },
- },
- },
- },
- },
-};
-```
-
</Steps>
</TabsContent>
</Tabs>
+## Examples
+
+### 2 Border Beams
+
+<ComponentPreview name="border-beam-demo-2" />
+
+### Reverse
+
+<ComponentPreview name="border-beam-demo-3" />
+
+### Spring Animation
+
+<ComponentPreview name="border-beam-demo-4" />
+
## Usage
Just place the border beam component inside a div with relative positioning, width, and height. You will notice the beam automatically moves around the perimeter of it's container.
@@ -85,18 +73,15 @@ export default async function App() {
### Border Beam
-| Prop | Type | Default | Description |
-| ------------- | -------- | --------- | -------------------------------------- |
-| `className` | `string` | `-` | Custom class to apply to the component |
-| `size` | `number` | `300` | Size of the beam |
-| `duration` | `number` | `15` | Duration of the animation |
-| `anchor` | `number` | `90` | Anchor point of the beam |
-| `borderWidth` | `number` | `1.5` | Width of the beam |
-| `colorFrom` | `string` | `#ffaa40` | Start color of the beam |
-| `colorTo` | `string` | `#9c40ff` | End color of the beam |
-| `delay` | `number` | `0` | Delay before the animation starts |
-
-## Credits
-
-- Credit to [@linear](https://linear.app/) where I first saw this effect.
-- Credit to [@jh3yy](https://twitter.com/jh3yy) for sharing his implementation of this effect.
+| Prop | Type | Default | Description |
+| --------------- | --------------------- | --------- | -------------------------------------- |
+| `className` | `string` | `-` | Custom class to apply to the component |
+| `size` | `number` | `50` | Size of the beam |
+| `duration` | `number` | `6` | Duration of the animation in seconds |
+| `delay` | `number` | `0` | Delay before the animation starts |
+| `colorFrom` | `string` | `#ffaa40` | Start color of the beam gradient |
+| `colorTo` | `string` | `#9c40ff` | End color of the beam gradient |
+| `transition` | `Transition` | `-` | Custom motion transition configuration |
+| `style` | `React.CSSProperties` | `-` | Custom CSS styles to apply |
+| `reverse` | `boolean` | `false` | Whether to reverse animation direction |
+| `initialOffset` | `number` | `0` | Initial offset position (0-100) |
diff --git a/content/pages/home.mdx b/content/pages/home.mdx
index 5a31801d..625c1881 100644
--- a/content/pages/home.mdx
+++ b/content/pages/home.mdx
@@ -6,18 +6,21 @@ description: A collection of components that are used to build the landing page
<ComponentPreview name="marquee-demo" preview />
<ComponentPreview name="marquee-demo-vertical" preview />
<ComponentPreview name="bento-demo" preview />
-<ComponentPreview name="dock-demo" preview />
<ComponentPreview name="animated-list-demo" preview />
<ComponentPreview name="animated-beam-demo" preview />
<ComponentPreview name="animated-beam-multiple-inputs" preview />
<ComponentPreview name="animated-beam-multiple-outputs" preview />
-<ComponentPreview name="particles-demo" preview />
+<ComponentPreview name="magic-card-demo" preview />
<ComponentPreview name="border-beam-demo" preview />
+<ComponentPreview name="border-beam-demo-2" preview />
+<ComponentPreview name="border-beam-demo-3" preview />
+<ComponentPreview name="border-beam-demo-4" preview />
+<ComponentPreview name="shine-border-demo" preview />
+<ComponentPreview name="dock-demo" preview />
+<ComponentPreview name="particles-demo" preview />
<ComponentPreview name="blur-fade-demo" preview />
<ComponentPreview name="blur-fade-text-demo" preview />
<ComponentPreview name="retro-grid-demo" preview />
-<ComponentPreview name="magic-card-demo" preview />
<ComponentPreview name="orbiting-circles-demo" preview />
<ComponentPreview name="ripple-demo" preview />
-<ComponentPreview name="shine-border-demo" preview />
<ComponentPreview name="confetti-demo" preview />
diff --git a/package.json b/package.json
index 12212314..2e45a257 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-scroll-area": "^1.0.5",
+ "@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 44201523..e7857c45 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -44,6 +44,9 @@ importers:
'@radix-ui/react-scroll-area':
specifier: ^1.0.5
+ '@radix-ui/react-select':
+ specifier: ^2.1.6
'@radix-ui/react-separator':
specifier: ^1.0.3
@@ -1269,12 +1272,18 @@ packages:
'@radix-ui/[email protected]':
resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==}
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==}
'@radix-ui/[email protected]':
resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==}
peerDependencies:
@@ -1327,6 +1336,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-G+KcpzXHq24iH0uGG/pF8LyzpFJYGD4RfLjCIBfGdSLXvjLHST31RUiRVrupIBMvIppMgSzQ6l66iAxl03tdlg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-kVK2K7ZD3wwj3qhle0ElXhOjbezIgyl2hVvgwfIdexL3rN6zJmy5AqqIf+D31lxVppdzV8CjAfZ6PklkmInZLw==}
peerDependencies:
@@ -1379,6 +1401,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-9z54IEKRxIa9VityapoEYMuByaG42iSy1ZXlY2KcuLSEtq8x4987/N6m15ppoMffgZX72gER2uHe1D9Y6Unlcw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==}
peerDependencies:
@@ -1397,6 +1432,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==}
peerDependencies:
@@ -1415,6 +1459,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==}
peerDependencies:
@@ -1472,6 +1525,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-E4TywXY6UsXNRhFrECa5HAvE5/4BFcGyfTyK36gP+pAW1ed7UTK4vKwdr53gAJYwqbfCWC6ATvJa3J3R/9+Qrg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-i6TuFOoWmLWq+M/eCLGd/bQ2HfAX1RJgvrBQ6AQLmzfvsLdefxbWu8G9zczcPFfcSPehz9GcpF6K9QYreFV8hA==}
peerDependencies:
@@ -1503,6 +1569,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==}
peerDependencies:
@@ -1529,6 +1604,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-zxwE80FCU7lcXUGWkdt6XpTTCKPitG1XKOwViTxHVKIJhZl9MvIl2dVHeZENCWD9+EdWv05wlaEkRXUykU27RA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-OcUN2FU0YpmajD/qkph3XzMcK/NmSk9hGWnjV68p6QiZMgILugusgQwnLSDs3oFSJYGKf3Y49zgFedhGh04k9A==}
peerDependencies:
@@ -1630,6 +1718,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Rvqc3nOpwseCyj/rgjlJDYAgyfw7OC1tTkKn2ivhaMGcYt8FSBlahHOZak2i3QwkRXUXgGgzeEe2RuqeEHuHgA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==}
peerDependencies:
@@ -1656,6 +1757,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-sn2O9k1rPFYVyKd5LAJfo96JlSGVFpa1fS6UuBJfrZadudiw5tAmru+n1x7aMRQ84qDM71Zh1+SzK5QwU0tJfA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}
peerDependencies:
@@ -1708,6 +1822,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Ec/0d38EIuvDF+GZjcMU/Ze6MxntVJYO/fRlCPhCaVUyPY9WTalHJw54tp9sXeJo3tlShWpy41vQRgLRGOuz+w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==}
peerDependencies:
@@ -1747,6 +1874,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-T6ajELxRvTuAMWH0YmRJ1qez+x4/7Nq7QIx7zJ0VK3qaEWdnWpNbEDnmWldG1zBDwqrLy5aLMUWcoGirVj5kMg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-itYmTy/kokS21aiV5+Z56MZB54KrhPgn6eHDKkFeOLR34HMN2s8PaN47qZZAGnvupcjxHaFZnW4pQEh0BvvVuw==}
peerDependencies:
@@ -1778,6 +1918,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow==}
peerDependencies:
@@ -1911,6 +2060,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==}
peerDependencies:
@@ -1960,6 +2118,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-1SzA4ns2M1aRlvxErqhLHsBHoS5eI5UUcI2awAMgGUp4LoaoWOKYmvqDY2s/tltuPkh3Yk77YF/r3IRj+Amx4Q==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}
@@ -2240,6 +2411,10 @@ packages:
resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
@@ -4841,6 +5016,16 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
resolution: {integrity: sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==}
engines: {node: '>=10'}
@@ -4861,6 +5046,16 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}
engines: {node: '>=10'}
@@ -4871,6 +5066,16 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
resolution: {integrity: sha512-dktP3RMuwRB4pnSDocKpSsW5Hq1IXRW6fONkHhxT5EBIXsKZzdQuI70qtub1XN2dtZdkJWWxfBm/Q+kN+vRYFA==}
peerDependencies:
@@ -5623,6 +5828,16 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}
engines: {node: '>=10'}
@@ -5633,6 +5848,16 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}
peerDependencies:
@@ -6808,12 +7033,16 @@ snapshots:
dependencies:
'@babel/runtime': 7.24.0
+ '@radix-ui/[email protected]': {}
+
'@radix-ui/[email protected]':
dependencies:
'@babel/runtime': 7.24.0
'@radix-ui/[email protected]': {}
+ '@radix-ui/[email protected]': {}
+
dependencies:
'@babel/runtime': 7.24.0
@@ -6866,6 +7095,15 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -6921,6 +7159,18 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -6934,6 +7184,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@babel/runtime': 7.24.0
@@ -6947,6 +7203,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7010,6 +7272,19 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/primitive': 1.1.1
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7039,6 +7314,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7062,6 +7343,17 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7196,6 +7488,24 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@floating-ui/react-dom': 2.0.8([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.0
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7216,6 +7526,16 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7256,6 +7576,15 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7309,6 +7638,35 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/number': 1.1.0
+ '@radix-ui/primitive': 1.1.1
+ '@radix-ui/react-collection': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ aria-hidden: 1.2.4
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7334,6 +7692,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7469,6 +7834,12 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@babel/runtime': 7.24.0
@@ -7508,6 +7879,15 @@ snapshots:
'@types/react': 18.2.12
'@types/react-dom': 18.2.5
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+
'@radix-ui/[email protected]':
dependencies:
'@babel/runtime': 7.24.0
@@ -7806,6 +8186,10 @@ snapshots:
dependencies:
tslib: 2.6.2
+ dependencies:
+ tslib: 2.6.2
+
@@ -11143,6 +11527,14 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.6.2
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
react: 18.3.1
@@ -11165,6 +11557,17 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.6.2
+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])
+ use-sidecar: 1.1.3(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
get-nonce: 1.0.1
@@ -11174,6 +11577,14 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ get-nonce: 1.0.1
+ react: 18.3.1
+ tslib: 2.6.2
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
'@swc/helpers': 0.5.6
@@ -12198,6 +12609,13 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ react: 18.3.1
+ tslib: 2.6.2
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
detect-node-es: 1.1.0
@@ -12206,6 +12624,14 @@ snapshots:
optionalDependencies:
'@types/react': 18.2.12
+ dependencies:
+ detect-node-es: 1.1.0
+ react: 18.3.1
+ tslib: 2.6.2
+ optionalDependencies:
+ '@types/react': 18.2.12
+
dependencies:
react: 18.3.1
diff --git a/public/r/border-beam-demo-2.json b/public/r/border-beam-demo-2.json
new file mode 100644
index 00000000..a60e297a
--- /dev/null
+++ b/public/r/border-beam-demo-2.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "border-beam-demo-2",
+ "type": "registry:example",
+ "title": "Border Beam Demo",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-2.tsx",
+ "content": "import { Button } from \"@/components/ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\nimport { Play, SkipBack, SkipForward } from \"lucide-react\";\n\nexport default function MusicPlayer() {\n return (\n <Card className=\"relative w-[350px]\">\n <CardHeader>\n <CardTitle>Now Playing</CardTitle>\n <CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"flex flex-col items-center gap-4\">\n <div className=\"h-48 w-48 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500\" />\n <div className=\"h-1 w-full rounded-full bg-secondary\">\n <div className=\"h-full w-1/3 rounded-full bg-primary\" />\n </div>\n <div className=\"flex w-full justify-between text-sm text-muted-foreground\">\n <span>2:45</span>\n <span>8:02</span>\n </div>\n </div>\n </CardContent>\n <CardFooter className=\"flex justify-center gap-4\">\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipBack className=\"size-4\" />\n </Button>\n <Button size=\"icon\" className=\"rounded-full\">\n <Play className=\"size-4\" />\n </Button>\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipForward className=\"size-4\" />\n </Button>\n </CardFooter>\n <BorderBeam\n duration={6}\n size={400}\n className=\"from-transparent via-red-500 to-transparent\"\n />\n <BorderBeam\n duration={6}\n delay={3}\n size={400}\n className=\"from-transparent via-blue-500 to-transparent\"\n />\n </Card>\n );\n}\n",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-2.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionStyle, Transition } from \"motion/react\";\n\ninterface BorderBeamProps {\n /**\n * The size of the border beam.\n */\n size?: number;\n /**\n * The duration of the border beam.\n */\n duration?: number;\n /**\n * The delay of the border beam.\n */\n delay?: number;\n /**\n * The color of the border beam from.\n */\n colorFrom?: string;\n /**\n * The color of the border beam to.\n */\n colorTo?: string;\n /**\n * The motion transition of the border beam.\n */\n transition?: Transition;\n /**\n * The class name of the border beam.\n */\n className?: string;\n /**\n * The style of the border beam.\n */\n style?: React.CSSProperties;\n /**\n * Whether to reverse the animation direction.\n */\n reverse?: boolean;\n /**\n * The initial offset position (0-100).\n */\n initialOffset?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 50,\n delay = 0,\n duration = 6,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n transition,\n style,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) => {\n return (\n <div className=\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]\">\n <motion.div\n className={cn(\n \"absolute aspect-square\",\n \"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent\",\n className,\n )}\n style={\n {\n width: size,\n offsetPath: `rect(0 auto auto 0 round ${size}px)`,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n ...style,\n } as MotionStyle\n }\n initial={{ offsetDistance: `${initialOffset}%` }}\n animate={{\n offsetDistance: reverse\n ? [`${100 - initialOffset}%`, `${-initialOffset}%`]\n : [`${initialOffset}%`, `${100 + initialOffset}%`],\n }}\n transition={{\n repeat: Infinity,\n ease: \"linear\",\n duration,\n delay: -delay,\n ...transition,\n }}\n />\n </div>\n );\n};\n",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/border-beam-demo-3.json b/public/r/border-beam-demo-3.json
new file mode 100644
index 00000000..33bba598
--- /dev/null
+++ b/public/r/border-beam-demo-3.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "border-beam-demo-3",
+ "type": "registry:example",
+ "title": "Border Beam Demo 3",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "input",
+ "label",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-3.tsx",
+ "content": "import { Button } from \"@/components/ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function LoginForm() {\n return (\n <Card className=\"relative w-[350px]\">\n <CardHeader>\n <CardTitle>Login</CardTitle>\n <CardDescription>\n Enter your credentials to access your account.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form>\n <div className=\"grid w-full items-center gap-4\">\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" placeholder=\"Enter your email\" />\n </div>\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"password\">Password</Label>\n <Input\n id=\"password\"\n type=\"password\"\n placeholder=\"Enter your password\"\n />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter className=\"flex justify-between\">\n <Button variant=\"outline\">Register</Button>\n <Button>Login</Button>\n </CardFooter>\n <BorderBeam\n duration={4}\n size={300}\n reverse\n className=\"from-transparent via-green-500 to-transparent\"\n />\n </Card>\n );\n}\n",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-3.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionStyle, Transition } from \"motion/react\";\n\ninterface BorderBeamProps {\n /**\n * The size of the border beam.\n */\n size?: number;\n /**\n * The duration of the border beam.\n */\n duration?: number;\n /**\n * The delay of the border beam.\n */\n delay?: number;\n /**\n * The color of the border beam from.\n */\n colorFrom?: string;\n /**\n * The color of the border beam to.\n */\n colorTo?: string;\n /**\n * The motion transition of the border beam.\n */\n transition?: Transition;\n /**\n * The class name of the border beam.\n */\n className?: string;\n /**\n * The style of the border beam.\n */\n style?: React.CSSProperties;\n /**\n * Whether to reverse the animation direction.\n */\n reverse?: boolean;\n /**\n * The initial offset position (0-100).\n */\n initialOffset?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 50,\n delay = 0,\n duration = 6,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n transition,\n style,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) => {\n return (\n <div className=\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]\">\n <motion.div\n className={cn(\n \"absolute aspect-square\",\n \"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent\",\n className,\n )}\n style={\n {\n width: size,\n offsetPath: `rect(0 auto auto 0 round ${size}px)`,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n ...style,\n } as MotionStyle\n }\n initial={{ offsetDistance: `${initialOffset}%` }}\n animate={{\n offsetDistance: reverse\n ? [`${100 - initialOffset}%`, `${-initialOffset}%`]\n : [`${initialOffset}%`, `${100 + initialOffset}%`],\n }}\n transition={{\n repeat: Infinity,\n ease: \"linear\",\n duration,\n delay: -delay,\n ...transition,\n }}\n />\n </div>\n );\n};\n",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/border-beam-demo-4.json b/public/r/border-beam-demo-4.json
new file mode 100644
index 00000000..6cf06f9f
--- /dev/null
+++ b/public/r/border-beam-demo-4.json
@@ -0,0 +1,25 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "border-beam-demo-4",
+ "type": "registry:example",
+ "title": "Border Beam Demo 4",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-4.tsx",
+ "content": "import { Button } from \"@/components/ui/button\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function Component() {\n return (\n <Button className=\"relative\" size=\"lg\" variant=\"outline\">\n Buy Now\n <BorderBeam\n size={40}\n initialOffset={20}\n className=\"from-transparent via-yellow-500 to-transparent\"\n transition={{\n type: \"spring\",\n stiffness: 60,\n damping: 20,\n }}\n />\n </Button>\n );\n}\n",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-4.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionStyle, Transition } from \"motion/react\";\n\ninterface BorderBeamProps {\n /**\n * The size of the border beam.\n */\n size?: number;\n /**\n * The duration of the border beam.\n */\n duration?: number;\n /**\n * The delay of the border beam.\n */\n delay?: number;\n /**\n * The color of the border beam from.\n */\n colorFrom?: string;\n /**\n * The color of the border beam to.\n */\n colorTo?: string;\n /**\n * The motion transition of the border beam.\n */\n transition?: Transition;\n /**\n * The class name of the border beam.\n */\n className?: string;\n /**\n * The style of the border beam.\n */\n style?: React.CSSProperties;\n /**\n * Whether to reverse the animation direction.\n */\n reverse?: boolean;\n /**\n * The initial offset position (0-100).\n */\n initialOffset?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 50,\n delay = 0,\n duration = 6,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n transition,\n style,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) => {\n return (\n <div className=\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]\">\n <motion.div\n className={cn(\n \"absolute aspect-square\",\n \"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent\",\n className,\n )}\n style={\n {\n width: size,\n offsetPath: `rect(0 auto auto 0 round ${size}px)`,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n ...style,\n } as MotionStyle\n }\n initial={{ offsetDistance: `${initialOffset}%` }}\n animate={{\n offsetDistance: reverse\n ? [`${100 - initialOffset}%`, `${-initialOffset}%`]\n : [`${initialOffset}%`, `${100 + initialOffset}%`],\n }}\n transition={{\n repeat: Infinity,\n ease: \"linear\",\n duration,\n delay: -delay,\n ...transition,\n }}\n />\n </div>\n );\n};\n",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/border-beam-demo.json b/public/r/border-beam-demo.json
index 40957f70..ffb9c1e4 100644
--- a/public/r/border-beam-demo.json
+++ b/public/r/border-beam-demo.json
@@ -10,13 +10,13 @@
"files": [
{
"path": "registry/example/border-beam-demo.tsx",
- "content": "import { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function BorderBeamDemo() {\n return (\n <div className=\"relative size-48 overflow-hidden rounded-lg border\">\n <BorderBeam />\n </div>\n );\n}\n",
+ "content": "import { Button } from \"@/components/ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function Component() {\n return (\n <Card className=\"relative w-[350px]\">\n <CardHeader>\n <CardTitle>Login</CardTitle>\n <CardDescription>\n Enter your credentials to access your account.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form>\n <div className=\"grid w-full items-center gap-4\">\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" placeholder=\"Enter your email\" />\n </div>\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"password\">Password</Label>\n <Input\n id=\"password\"\n type=\"password\"\n placeholder=\"Enter your password\"\n />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter className=\"flex justify-between\">\n <Button variant=\"outline\">Register</Button>\n <Button>Login</Button>\n </CardFooter>\n <BorderBeam duration={8} size={100} />\n </Card>\n );\n}\n",
"type": "registry:example",
"target": "components/border-beam-demo.tsx"
},
{
"path": "registry/magicui/border-beam.tsx",
- "content": "import { cn } from \"@/lib/utils\";\nimport { ComponentPropsWithoutRef } from \"react\";\n\ninterface BorderBeamProps extends ComponentPropsWithoutRef<\"div\"> {\n size?: number;\n duration?: number;\n borderWidth?: number;\n anchor?: number;\n colorFrom?: string;\n colorTo?: string;\n delay?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 200,\n duration = 15,\n anchor = 90,\n borderWidth = 1.5,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n delay = 0,\n ...props\n}: BorderBeamProps) => {\n return (\n <div\n style={\n {\n \"--size\": size,\n \"--duration\": duration,\n \"--anchor\": anchor,\n \"--border-width\": borderWidth,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n \"--delay\": `-${delay}s`,\n } as React.CSSProperties\n }\n className={cn(\n \"pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]\",\n\n // mask styles\n \"![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]\",\n\n // pseudo styles\n \"after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:animate-border-beam after:[animation-delay:var(--delay)] after:[background:linear-gradient(to_left,var(--color-from),var(--color-to),transparent)] after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]\",\n className,\n )}\n {...props}\n />\n );\n};\n",
+ "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionStyle, Transition } from \"motion/react\";\n\ninterface BorderBeamProps {\n /**\n * The size of the border beam.\n */\n size?: number;\n /**\n * The duration of the border beam.\n */\n duration?: number;\n /**\n * The delay of the border beam.\n */\n delay?: number;\n /**\n * The color of the border beam from.\n */\n colorFrom?: string;\n /**\n * The color of the border beam to.\n */\n colorTo?: string;\n /**\n * The motion transition of the border beam.\n */\n transition?: Transition;\n /**\n * The class name of the border beam.\n */\n className?: string;\n /**\n * The style of the border beam.\n */\n style?: React.CSSProperties;\n /**\n * Whether to reverse the animation direction.\n */\n reverse?: boolean;\n /**\n * The initial offset position (0-100).\n */\n initialOffset?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 50,\n delay = 0,\n duration = 6,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n transition,\n style,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) => {\n return (\n <div className=\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]\">\n <motion.div\n className={cn(\n \"absolute aspect-square\",\n \"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent\",\n className,\n )}\n style={\n {\n width: size,\n offsetPath: `rect(0 auto auto 0 round ${size}px)`,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n ...style,\n } as MotionStyle\n }\n initial={{ offsetDistance: `${initialOffset}%` }}\n animate={{\n offsetDistance: reverse\n ? [`${100 - initialOffset}%`, `${-initialOffset}%`]\n : [`${initialOffset}%`, `${100 + initialOffset}%`],\n }}\n transition={{\n repeat: Infinity,\n ease: \"linear\",\n duration,\n delay: -delay,\n ...transition,\n }}\n />\n </div>\n );\n};\n",
"type": "registry:ui",
"target": "components/magicui/border-beam.tsx"
}
diff --git a/public/r/border-beam.json b/public/r/border-beam.json
index 850b7e4d..d6c56c4d 100644
--- a/public/r/border-beam.json
+++ b/public/r/border-beam.json
@@ -7,27 +7,9 @@
"files": [
{
"path": "registry/magicui/border-beam.tsx",
- "content": "import { cn } from \"@/lib/utils\";\nimport { ComponentPropsWithoutRef } from \"react\";\n\ninterface BorderBeamProps extends ComponentPropsWithoutRef<\"div\"> {\n size?: number;\n duration?: number;\n borderWidth?: number;\n anchor?: number;\n colorFrom?: string;\n colorTo?: string;\n delay?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 200,\n duration = 15,\n anchor = 90,\n borderWidth = 1.5,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n delay = 0,\n ...props\n}: BorderBeamProps) => {\n return (\n <div\n style={\n {\n \"--size\": size,\n \"--duration\": duration,\n \"--anchor\": anchor,\n \"--border-width\": borderWidth,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n \"--delay\": `-${delay}s`,\n } as React.CSSProperties\n }\n className={cn(\n \"pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]\",\n\n // mask styles\n \"![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]\",\n\n // pseudo styles\n \"after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:animate-border-beam after:[animation-delay:var(--delay)] after:[background:linear-gradient(to_left,var(--color-from),var(--color-to),transparent)] after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]\",\n className,\n )}\n {...props}\n />\n );\n};\n",
+ "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionStyle, Transition } from \"motion/react\";\n\ninterface BorderBeamProps {\n /**\n * The size of the border beam.\n */\n size?: number;\n /**\n * The duration of the border beam.\n */\n duration?: number;\n /**\n * The delay of the border beam.\n */\n delay?: number;\n /**\n * The color of the border beam from.\n */\n colorFrom?: string;\n /**\n * The color of the border beam to.\n */\n colorTo?: string;\n /**\n * The motion transition of the border beam.\n */\n transition?: Transition;\n /**\n * The class name of the border beam.\n */\n className?: string;\n /**\n * The style of the border beam.\n */\n style?: React.CSSProperties;\n /**\n * Whether to reverse the animation direction.\n */\n reverse?: boolean;\n /**\n * The initial offset position (0-100).\n */\n initialOffset?: number;\n}\n\nexport const BorderBeam = ({\n className,\n size = 50,\n delay = 0,\n duration = 6,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n transition,\n style,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) => {\n return (\n <div className=\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]\">\n <motion.div\n className={cn(\n \"absolute aspect-square\",\n \"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent\",\n className,\n )}\n style={\n {\n width: size,\n offsetPath: `rect(0 auto auto 0 round ${size}px)`,\n \"--color-from\": colorFrom,\n \"--color-to\": colorTo,\n ...style,\n } as MotionStyle\n }\n initial={{ offsetDistance: `${initialOffset}%` }}\n animate={{\n offsetDistance: reverse\n ? [`${100 - initialOffset}%`, `${-initialOffset}%`]\n : [`${initialOffset}%`, `${100 + initialOffset}%`],\n }}\n transition={{\n repeat: Infinity,\n ease: \"linear\",\n duration,\n delay: -delay,\n ...transition,\n }}\n />\n </div>\n );\n};\n",
"type": "registry:ui",
"target": "components/magicui/border-beam.tsx"
}
- ],
- "tailwind": {
- "config": {
- "theme": {
- "extend": {
- "animation": {
- "border-beam": "border-beam calc(var(--duration)*1s) infinite linear"
- },
- "keyframes": {
- "border-beam": {
- "100%": {
- "offset-distance": "100%"
- }
- }
- }
- }
- }
- }
- }
+ ]
}
\ No newline at end of file
diff --git a/registry.json b/registry.json
index 554a3812..e5314fc7 100644
--- a/registry.json
+++ b/registry.json
@@ -757,25 +757,7 @@
"type": "registry:ui",
"target": "components/magicui/border-beam.tsx"
}
- ],
- "tailwind": {
- "config": {
- "theme": {
- "extend": {
- "animation": {
- "border-beam": "border-beam calc(var(--duration)*1s) infinite linear"
- },
- "keyframes": {
- "border-beam": {
- "100%": {
- "offset-distance": "100%"
- }
- }
- }
- }
- }
- }
- }
+ ]
},
{
"name": "animated-beam",
@@ -2427,6 +2409,76 @@
}
]
},
+ {
+ "name": "border-beam-demo-2",
+ "type": "registry:example",
+ "title": "Border Beam Demo",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-2.tsx",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-2.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+ },
+ {
+ "name": "border-beam-demo-3",
+ "type": "registry:example",
+ "title": "Border Beam Demo 3",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "input",
+ "label",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-3.tsx",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-3.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+ },
+ {
+ "name": "border-beam-demo-4",
+ "type": "registry:example",
+ "title": "Border Beam Demo 4",
+ "description": "Example showing an animated border beam effect.",
+ "registryDependencies": [
+ "button",
+ "https://magicui.design/r/border-beam"
+ ],
+ "files": [
+ {
+ "path": "registry/example/border-beam-demo-4.tsx",
+ "type": "registry:example",
+ "target": "components/border-beam-demo-4.tsx"
+ },
+ {
+ "path": "registry/magicui/border-beam.tsx",
+ "type": "registry:ui",
+ "target": "components/magicui/border-beam.tsx"
+ }
+ ]
+ },
{
"name": "animated-beam-demo",
"type": "registry:example",
diff --git a/registry/example/border-beam-demo-2.tsx b/registry/example/border-beam-demo-2.tsx
index e158b30e..369662f2 100644
--- a/registry/example/border-beam-demo-2.tsx
+++ b/registry/example/border-beam-demo-2.tsx
@@ -1,20 +1,56 @@
+import { Button } from "@/components/ui/button";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardFooter,
+ CardHeader,
+ CardTitle,
+} from "@/components/ui/card";
import { BorderBeam } from "@/registry/magicui/border-beam";
+import { Play, SkipBack, SkipForward } from "lucide-react";
-export default function BorderBeamDemo() {
+export default function MusicPlayer() {
return (
- <div className="relative rounded-xl">
- <img
- src="/placeholder-dark.svg"
- alt="Hero Image"
- className="mx-auto hidden aspect-video size-full overflow-hidden rounded-[inherit] rounded-xl border object-cover object-center shadow-lg dark:block"
+ <Card className="relative w-[350px]">
+ <CardHeader>
+ <CardTitle>Now Playing</CardTitle>
+ <CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="flex flex-col items-center gap-4">
+ <div className="h-48 w-48 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500" />
+ <div className="h-1 w-full rounded-full bg-secondary">
+ <div className="h-full w-1/3 rounded-full bg-primary" />
+ </div>
+ <div className="flex w-full justify-between text-sm text-muted-foreground">
+ <span>2:45</span>
+ <span>8:02</span>
+ </div>
+ </div>
+ </CardContent>
+ <CardFooter className="flex justify-center gap-4">
+ <Button variant="outline" size="icon" className="rounded-full">
+ <SkipBack className="size-4" />
+ </Button>
+ <Button size="icon" className="rounded-full">
+ <Play className="size-4" />
+ </Button>
+ <Button variant="outline" size="icon" className="rounded-full">
+ <SkipForward className="size-4" />
+ </Button>
+ </CardFooter>
+ <BorderBeam
+ duration={6}
+ size={400}
+ className="from-transparent via-red-500 to-transparent"
/>
- <img
- src="/placeholder.svg"
- alt="Hero Image"
- className="mx-auto block aspect-video size-full overflow-hidden rounded-[inherit] rounded-xl border object-cover object-center shadow-lg dark:hidden"
+ <BorderBeam
+ duration={6}
+ delay={3}
+ size={400}
+ className="from-transparent via-blue-500 to-transparent"
/>
-
- <BorderBeam size={250} duration={12} delay={9} />
- </div>
+ </Card>
);
}
diff --git a/registry/example/border-beam-demo-3.tsx b/registry/example/border-beam-demo-3.tsx
new file mode 100644
index 00000000..5150a1b4
--- /dev/null
+++ b/registry/example/border-beam-demo-3.tsx
@@ -0,0 +1,53 @@
+import { Button } from "@/components/ui/button";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardFooter,
+ CardHeader,
+ CardTitle,
+} from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { BorderBeam } from "@/registry/magicui/border-beam";
+
+export default function LoginForm() {
+ return (
+ <Card className="relative w-[350px]">
+ <CardHeader>
+ <CardTitle>Login</CardTitle>
+ <CardDescription>
+ Enter your credentials to access your account.
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <form>
+ <div className="grid w-full items-center gap-4">
+ <div className="flex flex-col space-y-1.5">
+ <Label htmlFor="email">Email</Label>
+ <Input id="email" type="email" placeholder="Enter your email" />
+ </div>
+ <div className="flex flex-col space-y-1.5">
+ <Label htmlFor="password">Password</Label>
+ <Input
+ id="password"
+ type="password"
+ placeholder="Enter your password"
+ />
+ </div>
+ </div>
+ </form>
+ </CardContent>
+ <CardFooter className="flex justify-between">
+ <Button variant="outline">Register</Button>
+ <Button>Login</Button>
+ </CardFooter>
+ <BorderBeam
+ duration={4}
+ size={300}
+ reverse
+ className="from-transparent via-green-500 to-transparent"
+ />
+ </Card>
+ );
+}
diff --git a/registry/example/border-beam-demo-4.tsx b/registry/example/border-beam-demo-4.tsx
new file mode 100644
index 00000000..6e1dfdc0
--- /dev/null
+++ b/registry/example/border-beam-demo-4.tsx
@@ -0,0 +1,20 @@
+import { Button } from "@/components/ui/button";
+import { BorderBeam } from "@/registry/magicui/border-beam";
+
+export default function Component() {
+ return (
+ <Button className="relative" size="lg" variant="outline">
+ Buy Now
+ <BorderBeam
+ size={40}
+ initialOffset={20}
+ className="from-transparent via-yellow-500 to-transparent"
+ transition={{
+ type: "spring",
+ stiffness: 60,
+ damping: 20,
+ }}
+ />
+ </Button>
+ );
+}
diff --git a/registry/example/border-beam-demo.tsx b/registry/example/border-beam-demo.tsx
index f6b2d86b..b8df2b0a 100644
--- a/registry/example/border-beam-demo.tsx
+++ b/registry/example/border-beam-demo.tsx
@@ -1,9 +1,48 @@
+import { Button } from "@/components/ui/button";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardFooter,
+ CardHeader,
+ CardTitle,
+} from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
import { BorderBeam } from "@/registry/magicui/border-beam";
-export default function BorderBeamDemo() {
+export default function Component() {
return (
- <div className="relative size-48 overflow-hidden rounded-lg border">
- <BorderBeam />
- </div>
+ <Card className="relative w-[350px]">
+ <CardHeader>
+ <CardTitle>Login</CardTitle>
+ <CardDescription>
+ Enter your credentials to access your account.
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <form>
+ <div className="grid w-full items-center gap-4">
+ <div className="flex flex-col space-y-1.5">
+ <Label htmlFor="email">Email</Label>
+ <Input id="email" type="email" placeholder="Enter your email" />
+ </div>
+ <div className="flex flex-col space-y-1.5">
+ <Label htmlFor="password">Password</Label>
+ <Input
+ id="password"
+ type="password"
+ placeholder="Enter your password"
+ />
+ </div>
+ </div>
+ </form>
+ </CardContent>
+ <CardFooter className="flex justify-between">
+ <Button variant="outline">Register</Button>
+ <Button>Login</Button>
+ </CardFooter>
+ <BorderBeam duration={8} size={100} />
+ </Card>
);
}
diff --git a/registry/magicui/border-beam.tsx b/registry/magicui/border-beam.tsx
index 97ac5b01..1ddcd5df 100644
--- a/registry/magicui/border-beam.tsx
+++ b/registry/magicui/border-beam.tsx
@@ -1,51 +1,94 @@
+"use client";
+
import { cn } from "@/lib/utils";
-import { ComponentPropsWithoutRef } from "react";
+import { motion, MotionStyle, Transition } from "motion/react";
-interface BorderBeamProps extends ComponentPropsWithoutRef<"div"> {
+interface BorderBeamProps {
+ /**
+ * The size of the border beam.
+ */
size?: number;
+ /**
+ * The duration of the border beam.
+ */
duration?: number;
- borderWidth?: number;
- anchor?: number;
+ /**
+ * The delay of the border beam.
+ */
+ delay?: number;
+ /**
+ * The color of the border beam from.
+ */
colorFrom?: string;
+ /**
+ * The color of the border beam to.
+ */
colorTo?: string;
- delay?: number;
+ /**
+ * The motion transition of the border beam.
+ */
+ transition?: Transition;
+ /**
+ * The class name of the border beam.
+ */
+ className?: string;
+ /**
+ * The style of the border beam.
+ */
+ style?: React.CSSProperties;
+ /**
+ * Whether to reverse the animation direction.
+ */
+ reverse?: boolean;
+ /**
+ * The initial offset position (0-100).
+ */
+ initialOffset?: number;
}
export const BorderBeam = ({
className,
- size = 200,
- duration = 15,
- anchor = 90,
- borderWidth = 1.5,
+ size = 50,
+ delay = 0,
+ duration = 6,
colorFrom = "#ffaa40",
colorTo = "#9c40ff",
- delay = 0,
- ...props
+ transition,
+ style,
+ reverse = false,
+ initialOffset = 0,
}: BorderBeamProps) => {
return (
- <div
- style={
- {
- "--size": size,
- "--duration": duration,
- "--anchor": anchor,
- "--border-width": borderWidth,
- "--color-from": colorFrom,
- "--color-to": colorTo,
- "--delay": `-${delay}s`,
- } as React.CSSProperties
- }
- className={cn(
- "pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]",
-
- // mask styles
- "![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]",
-
- // pseudo styles
- "after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:animate-border-beam after:[animation-delay:var(--delay)] after:[background:linear-gradient(to_left,var(--color-from),var(--color-to),transparent)] after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]",
- className,
- )}
- {...props}
- />
+ <div className="pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)]">
+ <motion.div
+ className={cn(
+ "absolute aspect-square",
+ "bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",
+ className,
+ )}
+ style={
+ {
+ width: size,
+ offsetPath: `rect(0 auto auto 0 round ${size}px)`,
+ "--color-from": colorFrom,
+ "--color-to": colorTo,
+ ...style,
+ } as MotionStyle
+ }
+ initial={{ offsetDistance: `${initialOffset}%` }}
+ animate={{
+ offsetDistance: reverse
+ ? [`${100 - initialOffset}%`, `${-initialOffset}%`]
+ : [`${initialOffset}%`, `${100 + initialOffset}%`],
+ }}
+ transition={{
+ repeat: Infinity,
+ ease: "linear",
+ duration,
+ delay: -delay,
+ ...transition,
+ }}
+ />
+ </div>
);
};
diff --git a/registry/registry-examples.ts b/registry/registry-examples.ts
index f1cd53c8..df48aabf 100644
--- a/registry/registry-examples.ts
+++ b/registry/registry-examples.ts
@@ -931,6 +931,73 @@ export const examples: Registry["items"] = [
},
],
},
+ {
+ name: "border-beam-demo-2",
+ type: "registry:example",
+ title: "Border Beam Demo",
+ description: "Example showing an animated border beam effect.",
+ registryDependencies: [
+ "button",
+ "card",
+ "https://magicui.design/r/border-beam",
+ ],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-2.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-2.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ },
+ {
+ name: "border-beam-demo-3",
+ type: "registry:example",
+ title: "Border Beam Demo 3",
+ description: "Example showing an animated border beam effect.",
+ registryDependencies: [
+ "button",
+ "card",
+ "input",
+ "label",
+ "https://magicui.design/r/border-beam",
+ ],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-3.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-3.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ },
+ {
+ name: "border-beam-demo-4",
+ type: "registry:example",
+ title: "Border Beam Demo 4",
+ description: "Example showing an animated border beam effect.",
+ registryDependencies: ["button", "https://magicui.design/r/border-beam"],
+ files: [
+ {
+ path: "registry/example/border-beam-demo-4.tsx",
+ type: "registry:example",
+ target: "components/border-beam-demo-4.tsx",
+ },
+ {
+ path: "registry/magicui/border-beam.tsx",
+ type: "registry:ui",
+ target: "components/magicui/border-beam.tsx",
+ },
+ ],
+ },
{
name: "animated-beam-demo",
type: "registry:example",
diff --git a/registry/registry-ui.ts b/registry/registry-ui.ts
index 19d04eff..8e7fd949 100644
--- a/registry/registry-ui.ts
+++ b/registry/registry-ui.ts
@@ -660,25 +660,6 @@ export const ui: Registry["items"] = [
target: "components/magicui/border-beam.tsx",
},
],
- tailwind: {
- config: {
- theme: {
- extend: {
- animation: {
- "border-beam":
- "border-beam calc(var(--duration)*1s) infinite linear",
- },
- keyframes: {
- "border-beam": {
- "100%": {
- "offset-distance": "100%",
- },
- },
- },
- },
- },
- },
- },
},
{
name: "animated-beam",
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 59ea5b21..c7d7fb8b 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -79,7 +79,6 @@ module.exports = {
ripple: "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",
rippling: "rippling var(--duration, 0.6s) ease-out",
line: "line 2s linear infinite",
- "border-beam": "border-beam calc(var(--duration)*1s) infinite linear",
orbit: "orbit calc(var(--duration)*1s) linear infinite",
"background-position-spin":
"background-position-spin 3000ms infinite alternate",
@@ -169,11 +168,6 @@ module.exports = {
"0%": { "mask-position-x": "0%" },
"100%": { "mask-position-x": "100%" },
},
- "border-beam": {
- "100%": {
- "offset-distance": "100%",
- },
- },
"shiny-text": {
"0%, 90%, 100%": {
"background-position": "calc(-100% - var(--shiny-width)) 0",