import { FC, HTMLAttributes, PropsWithChildren, Ref } from 'react'; import { PageControlSize } from './types'; export interface PageControlProps extends HTMLAttributes { /** * Controlled active index. */ active?: number; /** * Uncontrolled initial active index. */ defaultActive?: number; /** * Callback that is triggered when the user selects a different page. * Receives the new index as a number. */ onChangeActive?: (value: number) => void; /** * Ref forwarded to the underlying