Sign up and get 15% off every plan.

Sign up
Menu
ButtonsHeroUIApache-2.0 licence With paid plans

Toggle button

A button that stays pressed when you click it and lets go on the next click.

Add it to your project

Or install the packages yourselfTerminal
npm install @heroui/react lucide-react

The code

This comes with paid plans

The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.

Changed for this site: A default export (HeroUI's docs use named ones) without the docs site's prop controls; lucide-react icons instead of @gravity-ui/icons.