A component used to display inline code, with ability to copy the content by a button.
import { Code } from '@/components/ui/code'; export default function Component() { return ( <div className="flex items-center flex-wrap gap-4"> <Code variant="default">Default variant</Code> <Code variant="destructive">Destructive variant</Code> <Code variant="outline">Outline variant</Code> </div> ); }
Part of ReUI — browse the full library on 21st.dev.