Components
Replace this placeholder with your custom shadcn component
Edit src/registry/luma/your-component.tsx to get started
import type { HTMLAttributes } from "react";
import { forwardRef } from "react";
import type { HTMLAttributes } from "react";
import { forwardRef } from "react";
import { cn } from "@/lib/utils";
export interface YourComponentProps extends HTMLAttributes<HTMLDivElement> {}
/**
* Your component template.
*
* Replace this placeholder with your actual component implementation.
*/
const YourComponent = forwardRef<HTMLDivElement, YourComponentProps>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"p-4 rounded-md text-center bg-muted/20 space-y-2 border border-muted h-48 flex items-center flex-col justify-center",
className
)}
{...props}
>
<p className="text-sm text-muted-foreground/70">
Replace this placeholder with your custom shadcn component
</p>
<p className="text-muted-foreground text-center text-xs">
Edit{" "}
<code className="bg-muted rounded px-1.5 py-0.5 text-xs">
src/registry/luma/your-component.tsx
</code>{" "}
to get started
</p>
</div>
)
);
YourComponent.displayName = "YourComponent";
export { YourComponent };Usage
After you add the component with the CLI, import it from your UI folder:
import { YourComponent } from "@/components/ui/your-component";
export function MyComponent() {
return <YourComponent />;
}On This Page
Usage