Build flexible React UI with HeroUI Pro compound components, render props, and framework-agnostic styles.
HeroUI Pro components follow the exact same composition patterns as HeroUI OSS: compound components with dot notation, the render prop for custom elements, and framework-agnostic styles via @heroui/styles.
Read the full Composition guide on
heroui.com to learn about compound
components, polymorphic rendering, the render prop, and framework-agnostic styling.
Pro components use the same compound component pattern:
import {Sidebar} from "@heroui-pro/react";
<Sidebar.Provider>
<Sidebar>
<Sidebar.Header>Workspace</Sidebar.Header>
<Sidebar.Content>
<Sidebar.Menu aria-label="Navigation">
<Sidebar.MenuItem id="home" href="/">
Home
</Sidebar.MenuItem>
</Sidebar.Menu>
</Sidebar.Content>
<Sidebar.Footer>Account</Sidebar.Footer>
</Sidebar>
</Sidebar.Provider>;See each component's documentation for its supported composition props and full compound component anatomy.