# @fluentui/react-button **Button components for [Fluent UI React](https://react.fluentui.dev/)** - Buttons enable users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation. - CompoundButtons are buttons that can have secondary content that adds extra information to the user. - MenuButtons are buttons that have a chevron icon after the button contents and are usually clicked to open/close menus. - SplitButtons are a grouping of two interactive surfaces where interacting with the first one triggers a primary action, while interacting with the second one opens a menu with secondary actions. - ToggleButtons are buttons that toggle between two defined states when triggered. ## Usage To import Button: ```js import { Button, CompoundButton, MenuButton, SplitButton, ToggleButton } from '@fluentui/react-components'; ``` ### Examples ### Button ```jsx ``` ### CompoundButton ```jsx } secondaryContent="Secondary content" {...props}> Example ``` ### MenuButton ```jsx Example Item a Item b ``` ### SplitButton ```jsx {(triggerProps: MenuButtonProps) => Example} Item a Item b ``` ### ToggleButton ```jsx Toggle volume Toggle volume Toggle volume Toggle volume ``` See [Fluent UI Storybook](https://react.fluentui.dev/) for more detailed usage examples. Alternatively, run Storybook locally with: 1. `yarn start` 2. Select `react-button` from the list. ### Specification See [SPEC.md](./src/components/Button/SPEC.md). ### Migration Guide If you're upgrading to Fluent UI v9 see [MIGRATION.md](./src/components/Button/MIGRATION.md) for guidance on updating to the latest component implementations.