EntityCard API
Every prop of the 10 parts EntityCard exports, generated from the package manifest.
import { EntityCard, EntityCardActions, EntityCardContent, EntityCardHeading, EntityCardMedia, EntityCardMeta, EntityCardMeter, EntityCardTimestamp, EntityCardTitle, EntityCardTrailing } from '@oceanic-hub/brand-system'- Layer
- patterns — Generic composites — the shared shell and the shared status vocabulary that make every product inherit the look. The reason this package exists.
- Exports
- EntityCard · EntityCardActions · EntityCardContent · EntityCardHeading · EntityCardMedia · EntityCardMeta · EntityCardMeter · EntityCardTimestamp · EntityCardTitle · EntityCardTrailingtypes: EntityCardMeterProps · EntityCardProps · EntityCardTitleProps
- Variants
- tone: done | info | neutral | stuck | working
- Contract
- packages/brand-system/src/components/entity-card.contract.test-d.ts
- Demos
- 3 on the EntityCard page — rendered live, hydrated
- Source
- packages/brand-system/src/components/entity-card.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what EntityCard is for, how it composes and what it looks like, see EntityCard.
EntityCard
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardActions
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardContent
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardHeading
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardMedia
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardMeta
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardMeter
EntityCardMeterProps
Prop
Type
Also accepts everything from Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>.
EntityCardTimestamp
A styled <time> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
EntityCardTitle
EntityCardTitleProps
Prop
Type
Also accepts everything from React.ComponentPropsWithoutRef<'a'>.
EntityCardTrailing
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.