TidalUI

Sidebar preview

Collapsible workspace navigation with an inline mobile menu.

pro · Navigation · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/sidebar

Import components/ui/tidal.css, components/ui/sidebar.css. Wrap installed components in tidal-scope.

Preview

Sidebar component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/sidebar.css";
import{TidalSidebar}from"./components/ui/sidebar";
export default()=><div className="tidal-scope"><TidalSidebar navigation={"value"} title={"Demo"}/></div>;

API and props

TidalSidebar.navigation (required)
ReactNode

Required navigation value accepted by this exported component.

TidalSidebar.title (required)
string

Required title value accepted by this exported component.

TidalSidebar.collapsed
boolean | undefined

Optional collapsed value accepted by this exported component.

TidalSidebar.defaultCollapsed
boolean | undefined

Optional default collapsed value accepted by this exported component.

TidalSidebar.footer
ReactNode

Optional footer value accepted by this exported component.

TidalSidebar.mark
ReactNode

Optional mark value accepted by this exported component.

TidalSidebar.navigationLabel
string | undefined

Optional navigation label value accepted by this exported component.

TidalSidebar.onCollapsedChange
((collapsed: boolean) => void) | undefined

Callback invoked when the collapsed change interaction is proposed.

TidalSidebarGroup.label (required)
string

Required label value accepted by this exported component.

TidalSidebarLink.label (required)
string

Required label value accepted by this exported component.

TidalSidebarLink.active
boolean | undefined

Optional active value accepted by this exported component.

TidalSidebarLink.badge
string | number | undefined

Optional badge value accepted by this exported component.

TidalSidebarLink.icon
ReactNode

Optional icon value accepted by this exported component.

TidalSidebarAction.label (required)
string

Required label value accepted by this exported component.

TidalSidebarAction.active
boolean | undefined

Optional active value accepted by this exported component.

TidalSidebarAction.badge
string | number | undefined

Optional badge value accepted by this exported component.

TidalSidebarAction.closeOnSelect
boolean | undefined

Optional close on select value accepted by this exported component.

TidalSidebarAction.icon
ReactNode

Optional icon value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas