Snippet

Snippet is a component that allows you to display and copy code in a tabbed interface.

npx kibo-ui@latest add snippet

Installation

npx kibo-ui@latest add snippet

Features

  • Copy code to clipboard
  • Customize the tab contents
  • Multiple tabs support
  • Customizable copy button, tab triggers and tab content
  • Customizable copy button timeout and callbacks
  • Accessible tabs using Radix's Tabs primitive

Examples

NPM packages

npx next-forge@latest init