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 container
  • HintTitle - Optional title for the hint
  • HintBody - Main content area of the hint
  • HintActions - 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:
  • Classes
    Class
    Description
    A hint is in-app messaging that provides a one-step reminder, explanation, or call to action for a page or modal.