Data display

Item

A compact row for a file, a person or a destination, with optional media and actions.

Class nameTypeDescription
itemplf:itemComponentA row of content
item-mediaplf:item-mediaPartAn icon or avatar before the content
item-iconplf:item-iconPartAn SVG icon; an icon class there doesn't need it
item-contentplf:item-contentPartThe title and description
item-titleplf:item-titlePartThe title
item-descriptionplf:item-descriptionPartThe description
item-actionsplf:item-actionsPartControls after the content
item-groupplf:item-groupPartA list of items
item-outlineplf:item-outlineStyleA border
item-mutedplf:item-mutedStyleA raised background
item-smplf:item-smSizeCompact
Project brief

Updated just now.

Draft
Project brief

Updated just now.

Draft
Shared workspace Keep your team in one place.
Review reminder

Two notes are ready for review.

2 notes
Jordan Rivera

Workspace administrator

Jordan Rivera

Workspace administrator

A linked item cannot hold a link, button or input; for several actions, put the controls in a static item’s item-actions.

Groups

role="list" keeps the list’s semantics without markers.

  • Edited today.

    Shared
  • Archive

    Read-only reference files.

React

Item from @pelatform/react renders this markup from its props, and itemClass() gives a link or a router’s Link the same classes.

Prop Values Default
variant outline, muted Transparent
size sm The default size

The parts:

Part Element
ItemMedia A div with item-media
ItemContent A div with item-content
ItemTitle A div with item-title
ItemDescription A p with item-description
ItemActions A div with item-actions
ItemGroup A ul with item-group and role="list"

Other props are the element’s own, className and ref included; itemClass() takes variant and size, and a linked item’s parts are spans with their classes.

CSS variables

Override on a root or on a single item.

Variable Default
--plf-item-padding Space 4 (16px); space 3 (12px) with item-sm
--plf-item-gap Space 3 (12px); space 2 (8px) with item-sm
--plf-item-radius Large radius (8px)
--plf-item-bg Transparent; --plf-color-surface-hover with item-muted
--plf-item-color Text
--plf-item-border Transparent; --plf-color-border-subtle with item-outline
--plf-item-description-color Muted text
--plf-item-hover-bg Muted surface, on linked items
--plf-item-icon-size Control icon size (16px)

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons