Nav Bars

Workspace switcher nav

App bar with a searchable tenant dropdown

Live preview
Design an application top bar with Tailwind CSS built around a workspace switcher. The bar holds, on the left, a small square logo tile then a switcher button showing the current workspace avatar, its name, a muted plan label and a chevron. On the right, a breadcrumb-free set of controls: a bordered search field with a keyboard hint, a bell button with a red unread dot, and a round user avatar. The dropdown is an absolutely positioned max-w-xs card under the switcher: a search input at the top, a scrollable list of five workspaces each with an avatar, name, member count and a check glyph on the active one, then a divider and two actions — create a workspace and manage workspaces — each with a leading glyph. Then add JavaScript that toggles the dropdown, filters the list from the input, closes on outside click and on Escape, and swaps the button label when a workspace is chosen.