Hint

A hint is an in-app message that shares reminders, explanations, or calls to action within a page or modal.

Examples

Basic with title

Do more with Find it Fix it capabilities
Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.

Basic without title

Welcome to the new documentation experience.

Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.

With actions

You can add actions to a hint to allow users to respond to suggestions and initiate any related processes.

When a <Hint> contains actions, a negative margin is applied to the actions so that they are better aligned with the hint title. For larger-sized titles or non-plain actions (such as a button), remove this negative margin by setting hasNoActionsOffset to true.

To illustrate this behavior, select the "actions hasNoActionsOffset" checkbox in the following example.

Do more with Find it Fix it capabilities
Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.

Props

Hint

*required
NameTypeDefaultDescription
actionsReact.ReactNodeActions of the hint.
childrenReact.ReactNodeContent rendered inside the hint.
classNamestringAdditional classes applied to the hint.
hasNoActionsOffsetbooleanfalseFlag indicating that the actions have no offset

HintTitle

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the hint title.
classNamestringAdditional classes applied to the hint title.

HintBody

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the hint body.
classNamestringAdditional classes applied to the hint body.

HintFooter

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the hint footer.
classNamestringAdditional classes applied to the hint footer.