Home

The Item component is a flexible layout primitive designed to organize content such as titles, descriptions, media, and actions in a consistent way. It simplifies common UI patterns by providing a reusable structure for list items and grouped content, reducing the need for repetitive layout code while keeping interfaces clean and scalable.

Installation

npm
npx phpxui add Item

Usage

use Lib\PHPXUI\{
    Item,
    ItemActions,
    ItemContent,
    ItemDescription,
    ItemFooter,
    ItemHeader,
    ItemMedia,
    ItemTitle
}
<Item>
    <ItemHeader>Item Header</ItemHeader>
    <ItemMedia />
    <ItemContent>
        <ItemTitle>Item</ItemTitle>
        <ItemDescription>Item</ItemDescription>
    </ItemContent>
    <ItemActions />
    <ItemFooter>Item Footer</ItemFooter>
</Item>

Examples

Size

Basic Item

A simple item with title and description.

Your profile has been verified.

Icon

Security Alert

New login detected from unknown device.

Avatar

Evil Rabbit

Last seen 5 months ago

No Team Members

Invite your team to collaborate on this project.

Variants

Default Variant

Standard styling with subtle background and borders.

Outline Variant

Outlined style with clear borders and transparent background.

Muted Variant

Subdued appearance with muted colors for secondary content.

Image

Group

Falta