Installation
Copy and paste the following code into your project.
components/eldoraui/codesnippet.tsx
Copy and paste the following code into your project.
components/eldoraui/hooks/copytoclipboard.tsx
Update the import paths to match your project setup.
Props
CommandCode
Component Props
Prop Name | Type | Default | Description |
---|---|---|---|
children | string | - | The command or code text that will be displayed and copied. |