UNPKG

dgz-ui-shared

Version:

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

27 lines 1.05 kB
import { Option } from 'dgz-ui/form'; /** Default number of items per page (50) */ export declare const DEFAULT_LIMIT = 50; /** Default number of items per page for card/grid layouts (12) */ export declare const DEFAULT_ITEMS_LIMIT = 12; /** Default pagination limit options */ export declare const DEFAULT_OPTIONS: Option[]; /** * Props for the MyLimitSelect component. */ export interface MyLimitSelectProps { /** Default limit value. */ defaultValue?: number; /** Select options to show. */ options?: Option[]; /** Callback when a new limit is selected. */ onLimitChange: (limit: string) => void; } /** * MyLimitSelect lets the user change the number of rows per page. * * @param defaultValue - Default limit value. * @param options - Select options to show. * @param 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