Module: Shadcn::Item
- Extended by:
- Parts
- Defined in:
- app/components/shadcn/item.rb,
app/components/shadcn/item/preview.rb,
app/components/shadcn/item/component.rb,
app/components/shadcn/item/group/component.rb,
app/components/shadcn/item/media/component.rb,
app/components/shadcn/item/separator/component.rb
Overview
The parts of the Item family that are just an element with a data-slot
and a fixed set of classes. Item, ItemGroup, ItemMedia and
ItemSeparator each need more than that, so they keep their own
component.rb.
ItemDescription really is a <p> here — unlike Empty's, which upstream
types as "p" while rendering a <div>.
Defined Under Namespace
Modules: Group, Media, Separator Classes: Component, Preview