Components

Indicator

Indicators precisely position elements at the corners of other elements, improving visual alignment in user interfaces.

Basic

Indicator

The `indicator` component acts as a container for indicators, with the `indicator-item` class offering default positioning. Tailwind utility classes enable control over size, background color, and roundness of the indicators.

Status as indicator

Use `status` for status style indicator.

Badge as indicator

Use `badge` for badge style indicator.

+999

Pill badge as indicator

Using the `rounded-full` class with `badge` creates a pill-shaped badge as an indicator.

+999

Illustrations

Indicator on avatar

Avatar with an indicator badge denoting the user's status.

typing…
avatar
avatar
avatar

Indicator on input

Input field with a prominent indicator badge denoting a required entry.

Required

Button indicator

Button indicator provides a visual cue for interacting with content or actions within a container.

Card Title

Rerum reiciendis beatae tenetur excepturi

Animation

Ping animation

Include the `animate-ping` utility to enable an element to scale and fade, resembling a radar ping or water ripple effect, which is beneficial for features like notification badges.

+99

Pulse animation

Apply the class `animation-pulse` to integrate this animated loading indicator for situations where content within a card is loading.

loading...

Positions

Indicator

The Indicators can be positioned at.

Badge indicator

The badge display can be positioned at.

top+start T-Start top+center T-center top+end T-end middle+start M-start middle+center M-center middle+end M-end bottom+start B-Start bottom+center B-center bottom+end B-end
content

Responsive

Position based on resolution

Utilize responsive modifiers like `sm`, `md`, `lg` to adjust the indicator's position based on screen size.

Class referenceThe component, style, color, state, size and modifier classes available for this component.
ClassTypeDescription
indicatorcomponentContainer element.
indicator-itempartWill be placed on the corner of sibling.
indicator-startplacementAlign horizontally to the start.
indicator-centerplacementAlign horizontally to the center.
indicator-endplacementAlign horizontally to the end (default).
indicator-topplacementAlign vertically to top (default).
indicator-middleplacementAlign vertically to middle.
indicator-bottomplacementAlign vertically to bottom.