Hint
Hint는 사용자에게 유용한 정보나 개선 제안을 전달하는 컴포넌트예요. 제목(body의 요약)과 본문, 선택적으로 액션을 담아 직관적으로 안내할 수 있어요.
출처: 문서
본문
예제 (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)
힌트에 액션을 추가하면 사용자가 제안에 응답하고 관련 프로세스를 시작할 수 있어요.
<Hint>가 actions를 포함하면 액션에 음수 마진이 적용되어 힌트 제목과 더 잘 정렬돼요. 제목이 크거나 액션이 일반적 형태가 아닌 경우(예: 버튼)에는 hasNoActionsOffset을 true로 설정해 이 음수 마진을 제거할 수 있어요.
이 동작을 확인하려면 다음 예제에서 "actions hasNoActionsOffset" 체크박스를 선택해 보세요.
actions hasNoOffset
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
| Name | Type | Default | Description | |
|---|---|---|---|---|
| actions | React.ReactNode | 힌트의 액션. | ||
| children | React.ReactNode | 힌트 안에 렌더링되는 콘텐츠. | ||
| className | string | 힌트에 적용되는 추가 클래스. | ||
| hasNoActionsOffset | boolean | false | 액션에 오프셋이 없음을 나타내는 플래그. |
HintTitle
*required
| Name | Type | Default | Description | |
|---|---|---|---|---|
| children | React.ReactNode | 힌트 제목 안에 렌더링되는 콘텐츠. | ||
| className | string | 힌트 제목에 적용되는 추가 클래스. |
HintBody
*required
| Name | Type | Default | Description | |
|---|---|---|---|---|
| children | React.ReactNode | 힌트 본문 안에 렌더링되는 콘텐츠. | ||
| className | string | 힌트 본문에 적용되는 추가 클래스. |
HintFooter
*required
| Name | Type | Default | Description | |
|---|---|---|---|---|
| children | React.ReactNode | 힌트 푸터 안에 렌더링되는 콘텐츠. | ||
| className | string | 힌트 푸터에 적용되는 추가 클래스. |