analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
41 lines • 1.13 kB
TypeScript
import type { PeriodSelectorProps } from '../components/PeriodSelector/types';
/**
* PeriodSelector - Component for selecting time periods
*
* Provides a menu-based selector for common time periods (7 days, 1 month, etc.)
* Uses the Menu component with breadcrumb variant for a clean tab-like appearance.
*
* @example
* ```tsx
* const [period, setPeriod] = useState('1_MONTH');
*
* <PeriodSelector
* value={period}
* onChange={setPeriod}
* />
* ```
*
* @example With excluded values
* ```tsx
* <PeriodSelector
* value={period}
* onChange={setPeriod}
* excludeValues={['3_MONTHS']}
* />
* ```
*
* @example With custom options
* ```tsx
* <PeriodSelector
* value={period}
* onChange={setPeriod}
* options={[
* { value: '7_DAYS', label: '7 dias' },
* { value: '30_DAYS', label: '30 dias' },
* ]}
* />
* ```
*/
export declare function PeriodSelector({ value, onChange, defaultValue, options, excludeValues, className, }: Readonly<PeriodSelectorProps>): import("react/jsx-runtime").JSX.Element;
export default PeriodSelector;
//# sourceMappingURL=PeriodSelector.d.ts.map