PyBlade/ui
Menu⌄
DocsComponentsItem

Item

A row of content: media, title, description and actions.

8 files

Installation

pyblade-ui add item

Usage

The tags <pb-ui.item> <pb-ui.item-group> <pb-ui.item-separator> <pb-ui.item-media> <pb-ui.item-content> <pb-ui.item-title> <pb-ui.item-description> <pb-ui.item-actions> are available in all your templates.

<pb-ui.item variant="outline">
  <pb-ui.item-content>
    <pb-ui.item-title>Two-factor authentication</pb-ui.item-title>
    <pb-ui.item-description>Verify via email or phone number.</pb-ui.item-description>
  </pb-ui.item-content>
  <pb-ui.item-actions><pb-ui.button size="sm">Enable</pb-ui.button></pb-ui.item-actions>
</pb-ui.item>

Examples

List

Props

<pb-ui.item>
PropDefault
variant'default'
size'default'
<pb-ui.item-media>
PropDefault
variant'default'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.