Skip to main content
Designkufu

smarthr-ui-scroller

Scrollerは、コンテンツをスクロール可能な領域に収めるためのコンポーネントです。広いテーブルや要素群を限られた領域に収めて任意方向にスクロール表示するときに使います。

Stars
30
Source
kufu/smarthr-design-system
Updated
2026-05-29
Slug
kufu--smarthr-design-system--smarthr-ui-scroller
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-scroller/SKILL.md -o .claude/skills/smarthr-ui-scroller.md

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

コンテンツをスクロール可能な領域に収めるためのコンポーネントです。広いテーブルや要素群を限られた領域に収めて任意方向にスクロール表示するときに使います。

import

import { Scroller } from 'smarthr-ui'

Props

Props 名 デフォルト値 必須 説明
direction "both" | "horizontal" | "vertical" - - -
styleType "auto" | "scroll" - - -

実装ルール

a11y-scroller-has-tabindex

scroll可能な要素にtabindex属性を設定することを推奨し、インタラクティブでない要素に不要なtabindex属性が設定されていないかをチェックするルールです。

✅ OK:

// smarthr-ui/Scrollerコンポーネントを利用(推奨)
// tabIndexは自動的に設定されるため手動設定不要
<Scroller>
  <Table />
</Scroller>

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

使い方チェックリスト

使い方チェックリスト(Layer 3)は設定されていません。