Item API
Every prop of the 10 parts Item exports, plus each of the 2 symbols it exports alongside them, generated from the package manifest.
import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- Item · ItemActions · ItemContent · ItemDescription · ItemFooter · ItemGroup · ItemHeader · ItemMedia · ItemSeparator · ItemTitlealso: itemMediaVariants · itemVariantstypes: ItemMediaProps · ItemProps
- Variants
- variant: default | outline | muted
- size: default | sm
- variant: default | icon | image
- Contract
- packages/brand-system/src/components/item.contract.test-d.ts
- Demos
- 8 on the Item page — rendered live, hydrated
- Source
- packages/brand-system/src/components/item.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Item is for, how it composes and what it looks like, see Item.
Item
ItemProps
Prop
Type
Also accepts everything from React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemVariants>.
ItemActions
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemContent
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemDescription
A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemFooter
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemGroup
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemHeader
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ItemMedia
ItemMediaProps
Prop
Type
Also accepts everything from React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemMediaVariants>.
ItemSeparator
Inherited from the primitive underneath — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ItemTitle
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
itemMediaVariants
A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.
(props?: ({ variant?: "default" | "icon" | "image" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): stringParameters
Prop
Type
Variant axes
Read off the component's own cva config, so this table and the parts that consume it cannot disagree.
Prop
Type
itemVariants
A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.
(props?: ({ variant?: "default" | "outline" | "muted" | null | undefined; size?: "default" | "sm" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): stringParameters
Prop
Type
Variant axes
Read off the component's own cva config, so this table and the parts that consume it cannot disagree.
Prop
Type