ClayClay
  • Get Started
    • How to Use Clay
    • Composition Philosophy
    • How to Read This Documentation
    • Migrating From v2.x
    • Using Clay in JSPs
  • Components
    • Alert
    • Application Bar
    • Autocomplete
    • Badge
    • Breadcrumb
    • Button Group
    • Buttons
    • Card
    • Chart
    • Color Picker
    • Data Provider
    • Date Picker
    • Drop Down
    • Empty State
    • Form
      • Checkbox
      • Dual List Box
      • Input
      • Radio Group
      • Select
      • Select Box
      • Toggle Switch
    • Forms Hierarchy
    • Icon
    • Label
    • Layout
    • Link
    • List
    • Loading Indicator
    • Localized Input
    • Management Toolbar
    • Modal
    • Multi Select
    • Multi Step Nav
    • Nav
    • Navigation Bar
    • Pagination
    • Pagination Bar
    • Panel
    • Popover
    • Progress Bar
    • Sidebar
    • Slider
    • Sticker
    • Table
    • Tabs
    • Timelines
    • Time Picker
    • Toolbar
    • Tooltip
    • Upper Toolbar
  • Contributing
  • CSS Framework
    • Paver
    • SCSS
    • Color
    • Grid
    • Content
      • Typography
      • C Kbd
    • Utilities
      • Autofit
      • C Focus Inset
      • C Inner
      • C Spacing Utilities
      • Inline Item
    • Playground
  • Examples
  • Docs
  • Blog
  • Storybook
  • Codesandbox
  • Github
  • Use this menu to toggle between Atlas and Base Themes.

List

yarn add @clayui/list

Lists are a visual representation of a dataset, based on groups of related content, that is organized vertically.

  • Examples
  • Markup
  • API

Stable3.4.5View in LexiconCHANGELOGstorybook demos

  • List
  • List.Header
  • List.Item
  • List.ItemField
  • List.ItemText
  • List.ItemTitle
  • List.QuickActionMenu
  • List.QuickActionMenu.Item
  • ListWithItems

List

PropertyTypeRequiredDefaultDescription
children
TLIAttributes | Array<TLIAttributes>false
showQuickActionsOnHover
booleanfalsetrue

List.Header

Extends from React.HTMLAttributes<HTMLLIElement>

List.Item

PropertyTypeRequiredDefaultDescription
action
falsefalse
active
falsefalse
disabled
falsefalse
flex
falsefalse
header
falsefalse

List.ItemField

[APITable "clay-list/src/ItemField.tsx"]

List.ItemText

PropertyTypeRequiredDefaultDescription
subtext
booleanfalseFlag to indicate if content should be styled as subtext.

List.ItemTitle

Extends from React.HTMLAttributes<HTMLHeadingElement>

List.QuickActionMenu

Extends from React.HTMLAttributes<HTMLDivElement>

List.QuickActionMenu.Item

PropertyTypeRequiredDefaultDescription
href
stringfalseValue of path the item should link to.
spritemap
stringfalsePath to icon spritemap.
symbol
stringtrueName of icon symbol

ListWithItems

PropertyTypeRequiredDefaultDescription
itemIdentifier
string | 'id'false'id'Property of item that makes it unique from other items. Defaults to 'id'.
items
Array<IListItem>false[]Items to show in list.
onSelectedItemsChange
(map: IBooleanMap) => voidfalseCallback for when selected items change.
selectedItemsMap
IBooleanMapfalse{}Map of items that are currently selected.
spritemap
stringfalsePath to spritemap for icon symbol.

How can this be improved? Create an issue!