Guides use of the SmartHR UI AccordionPanel for toggling details in stacked headings, reducing clutter and showing an overview.
How this skill is triggered — by the user, by Claude, or both
Slash command
/smarthr-design-system:smarthr-ui-accordion-panelThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
縦に積まれた見出しのリストで、関連する詳細の表示・非表示を切り替えられるコンポーネントです。情報量が多い場合に表示内容を絞るときに使います。
縦に積まれた見出しのリストで、関連する詳細の表示・非表示を切り替えられるコンポーネントです。情報量が多い場合に表示内容を絞るときに使います。
補足的な情報を折りたたんで画面をシンプルに保つことで、情報量が増えてもユーザーが重要な情報にたどりつきやすくなります。また、ページの要素が多くスクロールが生じる画面において、まず見出しだけを表示してユーザーに全体像を把握させたい場合にも使用できます。
import { AccordionPanelTrigger, AccordionPanelItem, AccordionPanelContent, AccordionPanel } from 'smarthr-ui'
| Props 名 | 型 | デフォルト値 | 必須 | 説明 |
|---|---|---|---|---|
| headingType | "sectionTitle" | "blockTitle" | "subBlockTitle" | "subSubBlockTitle" | blockTitle | - | ヘッダ部分のテキストのスタイル |
| unrecommendedHeadingTag | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | - | - | 可能な限り利用せず、SectioningContent(Article, Aside, Nav, Section)を使ってHeadingと関連する範囲を明確に指定する方法を検討してください |
| Props 名 | 型 | デフォルト値 | 必須 | 説明 |
|---|---|---|---|---|
| name | string | - | ✓ | アイテムを識別するための名前 |
(固有 Props なし)
| Props 名 | 型 | デフォルト値 | 必須 | 説明 |
|---|---|---|---|---|
| iconPosition | "left" | "right" | left | - | アイコンの左右位置 |
| expandableMultiply | boolean | true | - | 複数のパネルを同時に開くことを許容するかどうか |
| defaultExpanded | string[] | [] | - | デフォルトで開いた状態にするアイテムの name の配列 |
| onClick | (expandedItems: string[]) => void | - | - | トリガのクリックイベントを処理するハンドラ |
| rounded | boolean | "all" | "top" | "bottom" | "left" | "right" | - | - | - |
AccordionPanel に直接関連する eslint-plugin-smarthr のルールは現時点ではありません。
iconPosition props でアイコンを右に配置するのは非推奨expandableMultiply props は expandableMultiply={true} に指定する
expandableMultiply={false} だと、1つのリストを展開するとすでに展開している別のリストが同時に閉じ、ユーザーが予測・意図していない動きが発生するため非推奨npx claudepluginhub kufu/smarthr-design-system --plugin smarthr-design-systemGuides selection of smarthr-ui components for UI requirements like forms, tables, buttons, dialogs, and notifications. Acts as an index before reading individual component skills.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.