diff --git a/apps/docs/app/components/[id]/AnimationDetailPage.client.tsx b/apps/docs/app/components/[id]/AnimationDetailPage.client.tsx index 5d2cd59..408e3bb 100644 --- a/apps/docs/app/components/[id]/AnimationDetailPage.client.tsx +++ b/apps/docs/app/components/[id]/AnimationDetailPage.client.tsx @@ -30,6 +30,7 @@ import { ChevronDown, Copy, FileText, + Github, Info, RefreshCw, } from "lucide-react"; @@ -621,6 +622,23 @@ export default function AnimationDetailPageClient({

{component.description}

+ {component.author?.username && ( + + + By{" "} + + @{component.author.username} + + + + )} \n \n \n );\n\n return (\n \n {onClick ? (\n \n {CardContent}\n \n ) : (\n \n {CardContent}\n \n )}\n \n );\n}\n", + "content": "\"use client\";\n\nimport { Avatar } from \"@base-ui/react/avatar\";\nimport { Button } from \"@base-ui/react/button\";\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionConfig } from \"framer-motion\";\nimport { ArrowRight } from \"lucide-react\";\n\ninterface NativeUserCardProps {\n imageSrc: string;\n name: string;\n handle: string;\n href?: string;\n onClick?: () => void;\n className?: string;\n}\n\nconst transition = {\n type: \"spring\" as const,\n stiffness: 400,\n damping: 30,\n};\n\nexport function NativeUserCard({\n imageSrc,\n name,\n handle,\n href = \"#\",\n onClick,\n className,\n}: NativeUserCardProps) {\n const CardContent = (\n \n
\n
\n \n \n \n {name.charAt(0)}\n \n \n
\n\n
\n

\n {name}\n

\n

\n {handle}\n

\n
\n
\n\n
\n \n \n \n \n \n \n \n
\n \n );\n\n return (\n \n {onClick ? (\n \n {CardContent}\n \n ) : (\n \n {CardContent}\n \n )}\n \n );\n}\n", "type": "registry:component", "target": "components/uitripled/native-user-card-baseui.tsx" } diff --git a/apps/docs/registry.json b/apps/docs/registry.json index 63b4ffc..e48a1ee 100644 --- a/apps/docs/registry.json +++ b/apps/docs/registry.json @@ -3692,7 +3692,7 @@ ], "files": [ { - "path": "@uitripled/react-baseui/src/components/native/native-flip-text-baseui.tsx", + "path": "@uitripled/react-carbon/src/components/native/native-flip-text-carbon-baseui.tsx", "type": "registry:component", "target": "components/uitripled/native-flip-text-baseui.tsx" } diff --git a/apps/docs/types/index.ts b/apps/docs/types/index.ts index 5d1d4a8..5a16f3b 100644 --- a/apps/docs/types/index.ts +++ b/apps/docs/types/index.ts @@ -45,6 +45,9 @@ export type Component = { isFree?: boolean; display?: boolean; availableIn?: UILibrary[]; // Which UI libraries have this component implemented + author?: { + username: string; // GitHub username — rendered as a credit link on component cards + }; }; export const categoryNames: Record = { diff --git a/packages/components/react-baseui/src/components/native/demo/native-marquee-demo.tsx b/packages/components/react-baseui/src/components/native/demo/native-marquee-demo.tsx new file mode 100644 index 0000000..a098b57 --- /dev/null +++ b/packages/components/react-baseui/src/components/native/demo/native-marquee-demo.tsx @@ -0,0 +1,66 @@ +"use client"; + +import { NativeMarquee, SideFadeGradients } from "../native-marquee-baseui"; +import { Cpu, GitBranch, Globe, Layers, Shield, Zap } from "lucide-react"; + +const ITEMS = [ + { id: "marquee-fast", icon: