Display a snippet of copyable code for the command line.
import { Snippet } from "@/components/ui/snippet-1"; export default function VariantsDemo() { return ( <div className="flex flex-col gap-2 w-3/4"> <Snippet text="npm init next-app" width="300px" type="success" /> <Snippet text="npm init next-app" width="300px" type="error" /> <Snippet text="npm init next-app" width="300px" type="warning" /> </div> ); }
Part of Geist — browse the full library on 21st.dev.