UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

59 lines (58 loc) 3.71 kB
import React from 'react'; import { BoxProps } from '../../../core'; import { PaginationIconProps } from '../Pagination.icons'; export interface CreateEdgeComponent { icon: React.FC<PaginationIconProps>; name: string; action: 'onNext' | 'onPrevious' | 'onFirst' | 'onLast'; type: 'next' | 'previous'; } export interface PaginationEdgeProps extends BoxProps { /** An icon component to replace the default icon */ icon?: React.FC<PaginationIconProps>; } export declare function createEdgeComponent({ icon, name, action, type }: CreateEdgeComponent): (<C = "button">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, PaginationEdgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(PaginationEdgeProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof PaginationEdgeProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (PaginationEdgeProps & { component: React.ElementType<any>; renderRoot?: ((props: Record<string, any>) => any) | undefined; })>, never> & Record<string, never>; export declare const PaginationNext: (<C = "button">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, PaginationEdgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(PaginationEdgeProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof PaginationEdgeProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (PaginationEdgeProps & { component: React.ElementType<any>; renderRoot?: ((props: Record<string, any>) => any) | undefined; })>, never> & Record<string, never>; export declare const PaginationPrevious: (<C = "button">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, PaginationEdgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(PaginationEdgeProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof PaginationEdgeProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (PaginationEdgeProps & { component: React.ElementType<any>; renderRoot?: ((props: Record<string, any>) => any) | undefined; })>, never> & Record<string, never>; export declare const PaginationFirst: (<C = "button">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, PaginationEdgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(PaginationEdgeProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof PaginationEdgeProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (PaginationEdgeProps & { component: React.ElementType<any>; renderRoot?: ((props: Record<string, any>) => any) | undefined; })>, never> & Record<string, never>; export declare const PaginationLast: (<C = "button">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, PaginationEdgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(PaginationEdgeProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof PaginationEdgeProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (PaginationEdgeProps & { component: React.ElementType<any>; renderRoot?: ((props: Record<string, any>) => any) | undefined; })>, never> & Record<string, never>;