JSPM

@fluentui/react-button

0.0.0-nightlyd3bf09bf8120211201.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 236196
  • Score
    100M100P100Q156631F
  • License MIT

Fluent UI React Button component.

Package Exports

  • @fluentui/react-button
  • @fluentui/react-button/lib-commonjs/Button
  • @fluentui/react-button/lib-commonjs/Button.js
  • @fluentui/react-button/lib-commonjs/CompoundButton
  • @fluentui/react-button/lib-commonjs/CompoundButton.js
  • @fluentui/react-button/lib-commonjs/MenuButton
  • @fluentui/react-button/lib-commonjs/MenuButton.js
  • @fluentui/react-button/lib-commonjs/SplitButton
  • @fluentui/react-button/lib-commonjs/SplitButton.js
  • @fluentui/react-button/lib-commonjs/ToggleButton
  • @fluentui/react-button/lib-commonjs/ToggleButton.js
  • @fluentui/react-button/lib-commonjs/index.js
  • @fluentui/react-button/lib/Button
  • @fluentui/react-button/lib/Button.js
  • @fluentui/react-button/lib/CompoundButton
  • @fluentui/react-button/lib/CompoundButton.js
  • @fluentui/react-button/lib/MenuButton
  • @fluentui/react-button/lib/MenuButton.js
  • @fluentui/react-button/lib/SplitButton
  • @fluentui/react-button/lib/SplitButton.js
  • @fluentui/react-button/lib/ToggleButton
  • @fluentui/react-button/lib/ToggleButton.js
  • @fluentui/react-button/lib/index.js

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-components';

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>