JSPM

@fluentui/react-progress

0.0.0-nightly-20230109-0423.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 164713
  • Score
    100M100P100Q164246F
  • License MIT

Progress component for FluentUI v9

Package Exports

  • @fluentui/react-progress
  • @fluentui/react-progress/package.json

Readme

@fluentui/react-progress

React Progress components for Fluent UI React

STATUS: Alpha

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 ProgressBar:

import { ProgressBar } from '@fluentui/react-progress';

Once the Progress component graduates to a production release, the component will be available at:

import { ProgressBar } from '@fluentui/react-components';

Examples

const ProgressBarExample = () => {
  return <ProgressBar thickness="large" value={0.5} />;
};

Using ProgressField

The ProgressField component is a wrapper around the ProgressBar component that allows the user to add a label, hint, validationMessage, and validationState to the ProgressBar component. You can pass these props, as well as the regular ProgressBar props to a ProgressField component.

To import ProgressField:

import { ProgressField } from '@fluentui/react-field';
const ProgressFieldExample = () => {
  return (
    <ProgressField
      label="Determinate ProgressBar"
      hint="This is a determinate Progress with description"
      value={0.5}
      validationState="warning"
    />
  );
};