0.2.0

Tour progress shows the user's position in the tour. Three visual variants are available — dots, text, and line. Pass false to disable.

Config

PropertyTypeDefaultDescription
variantBordaTourProgressVariantDOTSVisual style — dots, text, or line
ariaPartial<ComponentAriaProps>ARIA attributes
customClassesPartial<BordaTourProgressComponentClasses>Custom CSS classes
customStylesPartial<BordaTourProgressComponentStyles>Custom inline styles
import { BordaTourProgressVariant } from '@retoo/borda';

await borda.mount({
  steps: [...],
  tourProgress: {
    variant: BordaTourProgressVariant.TEXT,
  },
});

Variants

VariantDescription
DOTSOne dot per step, filled for completed steps
TEXT"Step 2 of 5" label
LINELinear progress bar

Disabling

await borda.mount({
  steps: [...],
  tourProgress: false,
});

Customization

tourProgress: {
  variant: BordaTourProgressVariant.DOTS,
  customClasses: {
    root: 'my-progress',
    item: 'w-2 h-2 rounded-full',
  },
}

Interface

interface BordaTourProgressProps {
  variant: BordaTourProgressVariant;
  aria: Partial<ComponentAriaProps>;
  customClasses: Partial<BordaTourProgressComponentClasses>;
  customStyles: Partial<BordaTourProgressComponentStyles>;
}