Package Exports
- @fluentui/react-button
- @fluentui/react-button/lib-commonjs/Button
- @fluentui/react-button/lib-commonjs/CompoundButton
- @fluentui/react-button/lib-commonjs/ToggleButton
- @fluentui/react-button/lib/Button
- @fluentui/react-button/lib/CompoundButton
- @fluentui/react-button/lib/ToggleButton
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fluentui/react-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@fluentui/react-button
Button components for Fluent UI React
The Button component enables users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
STATUS: WIP 🚧
These are not production-ready components and should never be used in product. This space is useful for testing new components whose APIs might change before final release.
Usage
To import Button:
import { Button } from '@fluentui/react-button';Once the Button component graduates to a production release, the component will be available at:
import { Button } from '@fluentui/react';Examples
<Button>Text</Button>
<Button icon={<SVGIcon />} />
<Button icon={<SVGIcon />}>Text</Button>
<Button icon={<SVGIcon />} iconPosition="after">Text</Button>
<Button primary>Text</Button>
<Button disabled>Text</Button>
<Button size="small">Text</Button>
<Button size="large">Text</Button>