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
Name | Type | Default | Description |
---|---|---|---|
actions | React.ReactNode | Actions of the hint. | |
children | React.ReactNode | Content rendered inside the hint. | |
className | string | Additional classes applied to the hint. | |
hasNoActionsOffset | boolean | false | Flag indicating that the actions have no offset |
HintTitle
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the hint title. | |
className | string | Additional classes applied to the hint title. |
HintBody
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the hint body. | |
className | string | Additional classes applied to the hint body. |
HintFooter
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the hint footer. | |
className | string | Additional classes applied to the hint footer. |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
.pf-v6-c-hint | --pf-v6-c-hint--GridRowGap | 0.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--PaddingBlockStart | 1.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--PaddingInlineEnd | 1.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--PaddingBlockEnd | 1.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--PaddingInlineStart | 1.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--BackgroundColor | (In light theme) #ffffff | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--BorderColor | (In light theme) #5e40be | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--BorderWidth | 2px | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--BorderRadius | 16px | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint--Color | (In light theme) #151515 | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__title--FontWeight | 500 | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__body--FontSize | 0.875rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__footer--MarginBlockStart | 0.5rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__footer--child--MarginInlineEnd | 1rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__actions--MarginInlineStart | 3rem | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__actions--c-menu-toggle--MarginBlockStart | calc(0.5rem * -1) | ||
| ||||
.pf-v6-c-hint | --pf-v6-c-hint__actions--c-menu-toggle--MarginBlockEnd | calc(0.5rem * -1) | ||
| ||||
.pf-v6-c-hint__actions.pf-m-no-offset | --pf-v6-c-hint__actions--c-menu-toggle--MarginBlockStart | 0 | ||
.pf-v6-c-hint__actions.pf-m-no-offset | --pf-v6-c-hint__actions--c-menu-toggle--MarginBlockEnd | 0 |