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

    Interface RoomSearchBarProps

    Props for the RoomSearchBar component. Provides search, sort, and filter controls for the room list.

    <RoomSearchBar
    searchQuery={query}
    sortBy="newest"
    filterBy="all"
    onSearchChange={setQuery}
    onSortChange={setSort}
    onFilterChange={setFilter}
    onClear={resetFilters}
    activeFiltersCount={2}
    />
    interface RoomSearchBarProps {
        activeFiltersCount: number;
        entityLabels?: RoomsEntityLabels;
        filterBy: FilterOption;
        icons?: Partial<RoomSearchBarIcons>;
        labels?: Partial<RoomSearchBarLabels>;
        onClear: () => void;
        onFilterChange: (filter: FilterOption) => void;
        onSearchChange: (query: string) => void;
        onSortChange: (sort: SortOption) => void;
        searchQuery: string;
        sortBy: SortOption;
    }
    Index

    Properties

    activeFiltersCount: number

    Number of active filters (used for badge display)

    entityLabels?: RoomsEntityLabels

    Entity labels for dynamic placeholder text

    filterBy: FilterOption

    Current filter option

    icons?: Partial<RoomSearchBarIcons>

    Custom icons to replace defaults

    labels?: Partial<RoomSearchBarLabels>

    Custom labels for i18n support

    onClear: () => void

    Called when the clear/reset button is clicked

    onFilterChange: (filter: FilterOption) => void

    Called when the filter option changes

    onSearchChange: (query: string) => void

    Called when the search query changes

    onSortChange: (sort: SortOption) => void

    Called when the sort option changes

    searchQuery: string

    Current search query string

    sortBy: SortOption

    Current sort option