Skip to main content

Entity Page

A full page layout composition combining breadcrumb navigation, entity hero, and content area with single or split layout modes.

Installation

$ npx shadcn@latest add @orecus/entity-page
Dependencies:
motion
Registry:
@orecus/entity-hero@orecus/breadcrumb@orecus/use-reduced-motion@orecus/color-utils

Component

Project Alpha
Active

Project Alpha

A cutting-edge platform for modern workflows and team collaboration

Progress

Completion

This Month

Budget

Total Budget

Spent

Team

Members

Active
Pending
Project Overview

This is the main content area for the entity page. In a real application, this would contain detailed information, forms, or other content.

⚔

Technologies

4
ReactTypeScriptNext.jsTailwindCSS
šŸ“

Categories

3
Web AppSaaSB2B

Props

PropTypeDefaultDescription
entity*T extends BaseEntity—The entity data to display
heroProps*Omit<EntityHeroProps<T>, 'entity' | 'children'>—Props to pass to EntityHero (entity and children are handled by EntityPage)
layout'single' | 'split''single'Content layout mode
embedHeaderbooleanfalseEmbed the header inside the hero area for a more cohesive visual
stickyHeaderbooleantrueMake the header sticky (only applies when embedHeader is false)

Compound Components

EntityPage.Header

Top bar container for breadcrumb and actions with optional glass styling.

PropTypeDefaultDescription
childrenReactNode—Header content (breadcrumb, EntityPage.Actions)
classNamestring—Additional CSS classes
typeCardType'none'Glass effect style variant
radiusHeaderRadius'none'Border radius size
borderbooleantrueShow border on header
invertbooleanfalseInvert glass overlay (light-on-light, dark-on-dark)

EntityPage.Actions

Action buttons within the header.

PropTypeDefaultDescription
childrenReactNode—Action elements (buttons, etc.)
classNamestring—Additional CSS classes

EntityPage.Hero

Content slots passed to the EntityHero component.

PropTypeDefaultDescription
childrenReactNode—EntityHero slot components

EntityPage.Content

Main content area.

PropTypeDefaultDescription
childrenReactNode—Main content
classNamestring—Additional CSS classes

EntityPage.SidePanel

Side panel content for split layout. Position controlled by parent sidePanelAlign prop.

PropTypeDefaultDescription
childrenReactNode—Side panel content
classNamestring—Additional CSS classes

EntityPage.Footer

Footer area with optional glass styling and sticky positioning.

PropTypeDefaultDescription
childrenReactNode—Footer content
classNamestring—Additional CSS classes
typeCardType'none'Glass effect style variant
radiusHeaderRadius'none'Border radius size
borderbooleantrueShow border on footer
invertbooleanfalseInvert glass overlay (light-on-light, dark-on-dark)