Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.21 KB

Indicator.mdx

File metadata and controls

53 lines (35 loc) · 1.21 KB
group package title order slug category description props import source docs styles
mantine-core
@mantine/core
Indicator
1
/core/indicator/
data-display
Display element at the corner of another element
Indicator
import { Indicator } from '@mantine/core';
mantine-core/src/Indicator/Indicator.tsx
core/Indicator.mdx
Indicator

import { IndicatorDemos } from '@mantine/demos';

Usage

Inline

When target element has fixed width, set inline prop to add display: inline-block; styles to Indicator container. Alternatively you can set width and height with sx prop if you still want root element to keep display: block.

OverflowCount

Set overflowCount to handle overflow cases:

Processing

Set processing to indicate that it is processing:

ShowZero

Set showZero to display 0:

Offset

Set offset to change indicator position. It is useful when Indicator component is used with children that have border-radius: