Installation
Install the component directly into your project using the Pittaya CLI.
npm install @mylib/ui button
Search for components by name, description, category or tags
A pre-styled section component that displays CLI installation commands with bash syntax highlighting and copy button functionality.
Install the component directly into your project using the Pittaya CLI.
npm install @mylib/ui button
Install the component directly into your project using the Pittaya CLI.
npx pittaya@latest add installation-section
Use the Installation Section when you need to display package installation commands in your documentation, landing pages, or component libraries.
This component is perfect for design systems, UI libraries, and any project that offers CLI-based installation.
The component includes proper semantic HTML with heading hierarchy and descriptive text for screen readers.
The copy button provides visual feedback through icons and toast notifications, ensuring all users can successfully copy the installation command.
Combine variants and sizes to meet your needs.
Simple usage with just the component slug. Uses all default values.
Customize the title and description to match your needs.
Use a different CLI command or package manager.
TSX interface that combines variants and default attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
componentSlugRequired | string | — | The slug of the component to install. This will be appended to the CLI command. |
title | string | 'Installation' | The heading text for the installation section. |
description | string | 'Install the component directly into your project using the Pittaya CLI.' | The descriptive text explaining how to use the command. |
availableCommandsRequired | object | — | The available commands to install the component. |
className | string | 'mt-8 space-y-4' | Additional CSS classes to customize the section styling. |