UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

32 lines (31 loc) 868 B
import React from 'react'; /** * Props for FilterSection component */ interface FilterSectionProps { /** Title of the filter section */ title: string; /** Whether the section is expanded or collapsed */ expanded: boolean; /** Function to toggle expand/collapse state */ toggleExpand: () => void; /** Child elements to render inside the section when expanded */ children: React.ReactNode; } /** * FilterSection component for creating expandable/collapsible sections in a filter sidebar * * @example * ```tsx * <FilterSection * title="Category" * expanded={expandedSections.categories} * toggleExpand={() => toggleSection("categories")} * > * <FilterList ... /> * </FilterSection> * ``` */ declare const FilterSection: React.FC<FilterSectionProps>; export default FilterSection; export type { FilterSectionProps };