# Application Chat and Messaging: Channel Directory

A browse and join panel with a create action, labeled search field, sort chips, and rows showing each channel name, description, members, and a join state.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-directory
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Chat and Messaging](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-directory.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-chat-messaging-channel-directory
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, input, label
- Installs to: `@/components/blocks/application-pro/chat-messaging/channel-directory`

## About this block

Channel Directory is the browse and join surface for a
workspace in one block, a header with a Browse channels
label and a Create channel action, a labeled search field
for filtering by name or topic, and a row of Most active,
Most members, Newest, and A to Z sort chips. Five channels
follow, from eng-general to coffee-chat, each showing the
name with a hash or lock privacy icon, a description, member
count, and recent activity, with a Join button or a Joined
state per row. A footer note counts the visible channels and
explains that private channels appear only after an invite.

Channels are one typed array, and the privacy icon and join
state are both driven per row. The search field uses a
visible Label rather than placeholder text so the field
reads clearly when empty.

## When to use

Reach for this block as the channel browser or directory for
a chat product, wired to your channels endpoint with the
sort chips bound to server side ordering and the search
field filtering the catalog. Bind each Join button to your
membership mutation and the privacy rule to permissions.

A natural flow around it on an Application Pro page:

**Before**

- [Navigation](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)
- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

**After**

- [Chat messaging](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging)
- [Empty states](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states)

## What you can display

One strong use is the workspace channel browser. Other
directory shapes:

- **Community spaces.** List public groups with topics and
  member counts for a join flow.
- **Project rooms.** Scope to project channels with a
  status chip instead of activity.
- **Team directory.** Swap channels for teams with a lead
  and a request to join action.

> Tip: keep the privacy icon and Join state on the same row;
> a browser that hides whether a channel is open or invite
> only forces a wasted click to find out.

## More in Application Chat and Messaging

- [Active Call Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/active-call-panel)
- [Channel List Sidebar](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-list-sidebar)
- [Channel Settings Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-settings-panel)
- [Conversation List](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/conversation-list)
- [Dm Thread Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/dm-thread-panel)
- [Emoji Reactions Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/emoji-reactions-blueprint)
- [Member Profile Drawer](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/member-profile-drawer)
- [Mentions Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/mentions-activity-feed)
- [Message Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/message-composer)
- [Message Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/message-thread)
- [Pinned Messages Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/pinned-messages-panel)
- [Poll Message Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/poll-message-card)
- [Scheduled Messages Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/scheduled-messages-panel)
- [Search Messages Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/search-messages-results)
- [Shared Files Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/shared-files-panel)
- [Thread Reply Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/thread-reply-panel)
- [Voice Message Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/voice-message-thread)
