Hint

A hint is in-app messaging that provides a one-step reminder, explanation, or call to action for 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.
We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.