Skip to main content
Designkufu

smarthr-ui-information-panel

InformationPanelは、ユーザーに伝えたい情報を視覚的に目立たせるパネルコンポーネントです。複数行のテキストや複数項目の不備一覧など、ResponseMessageやNotificationBarでは収まらない量のフィードバック情報などを表示するときに使います。

Stars
30
Source
kufu/smarthr-design-system
Updated
2026-05-29
Slug
kufu--smarthr-design-system--smarthr-ui-information-panel
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/kufu/smarthr-design-system/HEAD/plugins/smarthr-design-system/skills/smarthr-ui-information-panel/SKILL.md -o .claude/skills/smarthr-ui-information-panel.md

Drops the SKILL.md into .claude/skills/smarthr-ui-information-panel.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

ユーザーに伝えたい情報を視覚的に目立たせるパネルコンポーネントです。複数行のテキストや複数項目の不備一覧など、ResponseMessageやNotificationBarでは収まらない量のフィードバック情報などを表示するときに使います。

import

import { InformationPanel } from 'smarthr-ui'

Props

Props 名 デフォルト値 必須 説明
heading ReactNode | ObjectHeadingType - パネルのタイトル
toggleable boolean - - true のとき、開閉ボタンを表示する
onClickTrigger (active: boolean) => void - - 開閉ボタン押下時に発火するコールバック関数
type "error" | "warning" | "info" | "success" | "sync" info - -
bold boolean - - -
active boolean true - -
ref Ref - - -

実装ルール

design-system-guideline-prohibit-information-panel-in-white-bg

InformationPanelを白背景に配置することを禁止します。

詳細は eslint-plugin-smarthr の各ルール README を参照してください。

使い方チェックリスト

使用上の注意 > 短い一文で説明できるものに使用しない

  • [must] 見出しと内容を必ずセットにして使用する
  • [should] 短い一文で説明できる場合は、ResponseMessage や NotificationBar の使用を検討する

(Layer 2 でカバー: design-system-guideline-prohibit-information-panel-in-white-bg)

  • [should] InformationPanel では視覚的に強調されすぎる場合は、BaseColumn を使った代替パターンも検討する

レイアウト > [WIP] モバイル > 開閉ボタン

  • [must] モバイルでは開閉ボタンをアイコンボタンで表示する

レイアウト > [WIP] モバイル > 余白

  • [must] モバイルではコンポーネント内部の余白を 16px に変更する

状態 > デフォルト

  • [should] 全文表示したままだと操作の妨げになるなど、利用者の使い勝手に影響する場合は開閉ボタンの表示を検討する
  • [should] 開閉ボタンを表示する際は、利用者のストレスを避けるため開閉状態の保持を合わせて検討する