コンテンツにスキップ
LinkedInX

リストレイアウトのプロンプト

読了 5分 + 実践 15分

対象読者: 連絡先、通知、設定、商品など、同じ種類のアイテムの一覧を表示するアプリを作るすべての人。
前提知識: なし — UI用語の基本的な知識があると役に立ちます。

リストレイアウトは実際のアプリのあらゆる場所で使われています。正確に記述する方法をマスターすれば、どんなデータ一覧に対しても、見やすくスキャンしやすいUIを生成できます。


良いリストレイアウトプロンプトの条件

Section titled “良いリストレイアウトプロンプトの条件”

テンプレートに入る前に、基本的なリストレイアウトプロンプトで指定すべき項目を確認しておきましょう。

  • 左エリア — アバター、アイコン、または画像
  • 中央エリア — 主要テキスト(名前、タイトル)と補足テキスト(役職、説明)
  • 右エリア — アクションボタン、タイムスタンプ、シェブロン、またはトグル
  • 状態の挙動 — ホバーエフェクト、アクティブ・選択状態
  • 区切り線 — 行間の可視セパレーターか余白のみか

リストレイアウトのテンプレート

Section titled “リストレイアウトのテンプレート”
Create a list of user profiles with circular avatar images on the left,
name and role information in the middle, and a chevron icon button on the right.
Add subtle hover effects on each row.

Create a contacts list with:
- User avatars on the left (circular, 40px)
- Name and job title in the center (name in bold, title in gray)
- Action buttons on the right: call icon and message icon
Use subtle hover effects for interactivity.

Design a settings menu with:
- Left-aligned icons (24px, muted color) next to each setting name
- Toggle switches aligned to the right
- Section dividers between setting groups
- Subtle background highlight for the currently active setting

Create a notification feed with:
- Color-coded left borders (red for alerts, blue for info, green for success)
- Notification content and title
- Relative timestamps (e.g., "5 minutes ago") on the right
- An unread indicator dot on the left
- A dismiss (×) button on hover

Design a product list for an e-commerce app with:
- Product image on the left (48x48px, rounded corners)
- Product name and brief description in the center
- Price (bold) and rating stars below the name
- An add-to-cart button on the right
- Stock availability indicator (e.g., "In stock" in green)

リストプロンプトのベストプラクティス

Section titled “リストプロンプトのベストプラクティス”
要素指定すべき内容
アイテムの高さモバイルのタッチターゲットとして最低44px
アバターサイズ正確なピクセルサイズ(例: 「40px の円形アバター」)
区切り線「1px border-bottom」または「余白のみ」
ホバー状態色、背景、またはアンダーラインの変化
空の状態リストが空のときに表示するメッセージ

リストと他のパターンの組み合わせ

Section titled “リストと他のパターンの組み合わせ”

リストレイアウトは検索バーやフィルターコントロールと自然に組み合わせられます。

Create a searchable contact list with:
1. A search input at the top that filters results in real time
2. An alphabetical section header (e.g., "A", "B") as each group starts
3. Each row: circular avatar, name, and phone number
4. A sticky header that shows the current letter as the user scrolls