# Snippet Documentation ## Installation ```bash jsrepo add ui/snippet ``` ## Components ### Snippet The root component for displaying a code snippet with copy functionality. #### Props | Prop | Type | Default Value | Required | Bindable | Description | |------|------|--------------|----------|----------|-------------| | variant | "default" | "secondary" | "destructive" | "primary" | default | false | false | The visual style of the snippet. | | text | string | string[] | - | false | false | The code or lines of code to display. | | class | string | - | false | false | Additional classes to apply to the root element. | | onCopy | (status: "success" | "failure") => void | - | false | false | Function called after the snippet is copied. |