UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

18 lines 752 B
import { type Option } from 'dgz-ui/form'; export declare const DEFAULT_LIMIT = 50; export declare const DEFAULT_ITEMS_LIMIT = 12; export declare const DEFAULT_OPTIONS: Option[]; export interface MyLimitSelectProps { defaultValue?: number; options?: Option[]; onLimitChange: (limit: string) => void; } /** * MyLimitSelect lets the user change the number of rows per page. * * @param props.defaultValue - Default limit value. * @param props.options - Select options to show. * @param props.onLimitChange - Callback when a new limit is selected. */ export declare const MyLimitSelect: ({ defaultValue, options, onLimitChange, }: MyLimitSelectProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=MyLimitSelect.d.ts.map