Code Snippet
A basic code snippet surface for short commands.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { CodeSnippetBasic } from '@/components/component-kit/items/code-snippet-basic';
export function Example() { return ( <CodeSnippetBasic label="Install" code="pnpm add nextbase" copyable /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
code | string | — | The text displayed in the snippet. |
copyable | boolean | false | Enable the copy button. |