Go Main page
Go Main page

Web components

cover

components

Page control

v.1.0.0 | Saturn

Usage

1
import { PageControl } from '@kubit-ui-web/react-components';

Props

Let's delve into the versatility of the pageControl component by examining all its avalaible props.

Note that the pageControl component's default styling properties can be moderately adjusted through the ctv prop, in case the project do not need a full variant customization. This limited customization ensures a seamless balance between predefined aesthetic and your specific design requirements. Additionally, it's essential to highlight that Kubit always provided the option to full customized all the variants that your project needs.

PropertyTypeDefaultDescription
variant
Required
String-Current variant of PageControl
arrowsControlVariant
Required
String-Current variant for arrows control
pages
Required
Number-Number of the total pages
currentPosition
Required
Number-Actual position
maxDotsNumber5Maximun number of dots showed
leftArrowControlPageControlArrowControlType-Object to manage left arrow
rightArrowControlPageControlArrowControlType-Object to manage right arrow
dataTestIdString-Id for testing
ctvPageControlVariantStylesType-Modify styles for the default version of the component
extraCtArrowsControlVariantStylesType-Modify styles for the default version of the component