Center
Component
Section titled “Component” Preview react
import { Center } from "@/components/ui/center"
export function CenterDemo() {return ( <Center className="border rounded-md h-32 w-full"> <span className="text-sm text-muted-foreground">Centered Content</span> </Center>)}Installation
Section titled “Installation”npx shadcn@latest add https://devx-op.github.io/arkitect-ui/r/r/center.jsonpnpm dlx shadcn@latest add https://devx-op.github.io/arkitect-ui/r/r/center.jsonbunx shadcn@latest add https://devx-op.github.io/arkitect-ui/r/r/center.jsonimport { type ComponentProps } from "react"import { cn } from "@/lib/utils"
export interface CenterProps extends ComponentProps<"div"> {}
export function Center({ className, children, ...props }: CenterProps) { return ( <div className={cn("flex items-center justify-center", className)} {...props}> {children} </div> )}