Outlook_Addin_LLM/node_modules/@fluentui/react-badge/README.md

44 lines
1.1 KiB
Markdown

# @fluentui/react-badge
**Badge components for [Fluent UI](https://react.fluentui.dev/)**
A badge is an additional visual descriptor for UI elements. It can be used to denote numerical value, status or general information.
## Usage
To import Badge:
```js
import { Badge, CounterBadge, PresenceBadge } from '@fluentui/react-components';
```
### Examples
```jsx
<Badge>999+</Badge>
<Badge appearance="filled">999+</Badge>
<Badge shape="rounded" />
<Badge size="medium" icon={<PasteIcon />} />
<CounterBadge count={5} appearance="ghost" />
<CounterBadge count={0} dot />
<CounterBadge count={5} size="extra-large" />
<PresenceBadge status="available" />
<PresenceBadge status="away" />
<PresenceBadge outOfOffice status="do-not-disturb" />
```
See [Fluent UI Storybook](https://react.fluentui.dev/) for more detailed usage examples.
Alternatively, run Storybook locally with:
1. `yarn start`
2. Select `react-badge` from the list.
### Specification
See [SPEC.md](./SPEC.md).
### Migration Guide
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Badge component implementations.