Hint

PreviousNext

A component to highlight important text on the screen with different mood variants and optional icons.

A component to highlight important text on the screen. It supports multiple mood variants and can include an optional icon to enhance the visual hierarchy.

Basic Usage

A simple hint without an icon:

This is a default hint message that provides helpful information to users.

With Icon

Add an icon to make the hint more visually prominent:

This hint includes an icon to draw attention to important information.

All Variants

The Hint component supports five mood variants: default, neutral, success, warning, and danger.

Default: General information and helpful tips.

Neutral: Standard informational messages.

Success: Positive outcomes and confirmations.

Warning: Important information requiring attention.

Danger: Errors or critical information.

Without Icons

Hints can also be displayed without icons for a cleaner look:

This is a simple hint without an icon for cleaner layouts.

Changes saved successfully.

Your session will expire soon.

Props

PropTypeDefaultDescription
variant"default" | "neutral" | "success" | "warning" | "danger""default"The mood variant of the hint
iconReact.ReactNodeundefinedOptional icon to display at the start of the hint
classNamestringundefinedAdditional CSS classes to apply
childrenReact.ReactNode-The content to display in the hint

The component also accepts all standard HTML div attributes.