EntityCard
Profile card with logo, type, location, stats, tags and actions.
Design intent
Directory and profile lists repeat the same firm card. EntityCard keeps the identity, stats and sector tags consistent and falls back to initials when no logo exists.
npx @slipstream-ui/cli@latest add entity-cardConsulting and advisory services for growing teams.
- Projects delivered
- 60
- Via platform
- 3
Product studio focused on small business software.
- Platforms
- 12
- Active
- Yes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | required | Firm or member name. |
| entityType | string | required | Firm type, role or member category. |
| location | string | — | Region or office location. |
| description | string | — | Short firm description. |
| logo | ReactNode | — | Logo slot; initials are used when omitted. |
| stats | EntityStat[] | — | Small stats such as projects delivered. |
| tags | string[] | — | Sector or service tags. |
| href | string | — | Profile destination. |
| cardHref | string | — | Whole-card stretched link; suppresses the footer link. |
| linkComponent | React.ElementType | — | Custom link element for routers. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop name used to pass the destination to linkComponent. |
| actions | ReactNode | — | Extra footer actions. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't make the whole card a link with nested actions
By default the title and footer link are the destinations so controls never nest. When the whole card should be the target, use cardHref (stretched-link): it keeps actions as siblings layered above the overlay instead of nesting them inside the link.
tsx// Whole-card link: cardHref="/members/acme" + actions slot for extra controls.// Otherwise: href for title/footer link, actions in the actions slot.
Accessibility
- The title and footer link are the destinations; cardHref makes the whole card one stretched link with actions layered above.
- The avatar fallback derives initials from the name.
Composition
Compose with Grid: Place entity cards in a directory Grid
<Grid mdCols={3} gap="lg"><EntityCard ... /></Grid>
Related components: Avatar, Badge, Card, DealCard, DocumentCard
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.