Package org.patternfly.component.hint
package org.patternfly.component.hint
Provides hint components for displaying contextual banners with supplementary information.
This package contains the Hint component and its sub-components
for presenting inline messages that provide guidance or suggestions to the user. A hint can include a title,
body text, actions, and a footer with links or buttons.
Components
Hint- Top-level hint containerHintTitle- Optional title for the hintHintBody- Main content area of the hintHintActions- Actions area (e.g., dropdown or buttons)HintFooter- Footer area with links or buttons
Usage
A hint with title, body, actions, and footer:
import static org.patternfly.component.button.Button.button;
import static org.patternfly.component.hint.Hint.hint;
import static org.patternfly.component.hint.HintBody.hintBody;
import static org.patternfly.component.hint.HintFooter.hintFooter;
import static org.patternfly.component.hint.HintTitle.hintTitle;
Hint hint = hint()
.addTitle(hintTitle().text("Do more with Find it Fix it capabilities"))
.addBody(hintBody().text(
"Upgrade to Red Hat Smart Management to remediate all your systems."))
.addFooter(hintFooter()
.add(button().link().inline()
.text("Try it for 90 days")));
- See Also:
-
ClassesClassDescriptionA hint is in-app messaging that provides a one-step reminder, explanation, or call to action for a page or modal.