0.2.0

Tour skip renders a "Don't show again" checkbox inside the tooltip. When checked, the tour won't replay for returning users. The state is persisted in localStorage under a configurable key. Pass false to disable.

Config

PropertyTypeDefaultDescription
checkedbooleanfalseInitial checked state
labelstringDon't show againCheckbox label text
disabledbooleanfalseWhether the checkbox is disabled
ariaPartial<ComponentAriaProps>ARIA attributes
customClassesPartial<BordaTourSkipComponentClasses>Custom CSS classes
customStylesPartial<BordaTourSkipComponentStyles>Custom inline styles
customHtmlPartial<BordaTourSkipComponentHtml>Custom HTML for input/label
await borda.mount({
  steps: [...],
  tourSkip: {
    label: 'Do not show this again',
  },
});

Disabling

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

Customization

tourSkip: {
  customClasses: {
    root: 'my-skip-wrapper',
    label: 'text-xs text-gray-400',
  },
}

Interface

interface BordaTourSkipProps {
  checked: boolean;
  label: string;
  disabled: boolean;
  aria: Partial<ComponentAriaProps>;
  customClasses: Partial<BordaTourSkipComponentClasses>;
  customStyles: Partial<BordaTourSkipComponentStyles>;
  customHtml: Partial<BordaTourSkipComponentHtml>;
}