Display a snippet of copyable code for the command line.
import { Snippet } from "@/components/ui/snippet-1"; export default function CallbackDemo() { return ( <div className="w-3/4"> <Snippet text="npm init next-app" onCopy={() => alert("You copied the text!")} /> </div> ); }
Part of Geist — browse the full library on 21st.dev.