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

    Props for the SessionList component.

    <SessionList
    sessions={sessions}
    loading={isLoading}
    resolveRoomAlias={(name) => roomAliasMap.get(name)}
    onSessionClick={(session) => console.log('clicked', session.id)}
    labels={{ emptyState: 'No history yet' }}
    />
    interface SessionListProps {
        colors?: Partial<SessionListColors>;
        labels?: Partial<SessionListLabels>;
        loading?: boolean;
        onError?: (error: Error) => void;
        onSessionClick?: (session: Session) => void;
        resolveRoomAlias?: (roomName: string) => string | undefined;
        sessions: Session[];
        showRoomName?: boolean;
        styles?: Partial<SessionListStyles>;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    colors?: Partial<SessionListColors>

    Customizable colors

    labels?: Partial<SessionListLabels>

    Customizable labels

    loading?: boolean

    Whether sessions are loading

    onError?: (error: Error) => void

    Error callback

    onSessionClick?: (session: Session) => void

    Click handler for a session row

    resolveRoomAlias?: (roomName: string) => string | undefined

    Resolve room name to display alias

    sessions: Session[]

    Array of sessions to display

    showRoomName?: boolean

    Whether to show room name on each row (useful when showing sessions from multiple rooms)

    styles?: Partial<SessionListStyles>

    Customizable styles

    sx?: SxProps<Theme>

    MUI sx prop for the root container