Hiyve Components - v1.0.0
    Preparing search index...

    Props for the ChatChannelList component.

    interface ChatChannelListProps {
        activeChannelId?: string | null;
        channels: ChatChannel[];
        colors?: Partial<ChatChannelListColors>;
        groupBy?: (channel: ChatChannel) => string;
        labels?: Partial<ChatChannelListLabels>;
        onChannelSelect: (channelId: string) => void;
        renderChannelItem?: (
            channel: ChatChannel,
            isActive: boolean,
            defaultContent: ReactNode,
        ) => ReactNode;
        showSearch?: boolean;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    activeChannelId?: string | null

    Currently active channel ID

    channels: ChatChannel[]

    Array of channels to display

    colors?: Partial<ChatChannelListColors>

    Custom colors

    groupBy?: (channel: ChatChannel) => string

    Group channels by a key derived from each channel

    labels?: Partial<ChatChannelListLabels>

    Custom labels

    onChannelSelect: (channelId: string) => void

    Callback when a channel is selected

    renderChannelItem?: (
        channel: ChatChannel,
        isActive: boolean,
        defaultContent: ReactNode,
    ) => ReactNode

    Custom render for a channel item

    showSearch?: boolean

    Show search filter (default: false)

    sx?: SxProps<Theme>

    MUI sx styling prop