UNPKG

@finastra/stepper

Version:

Stepper Web Component

27 lines (26 loc) 943 B
import '@finastra/icon'; import { LitElement } from 'lit'; export interface Step { label: string; description?: string; activeStepIcon?: string; disabled?: Boolean; error?: Boolean; } /** * @cssprop {text} [--fds-stepper-line-space=8px] - Stepper line space. * @attr {boolean} [secondary=false] - Use Secondary color. * @attr {boolean} [readonly=false] - Read only mode. * @attr {boolean} [hideIndex=false] - Hide the index of each steps. * @attr [currentStepIndex=-1] - Index of current active step. */ export declare class BaseStepper extends LitElement { steps: Step[]; currentStepIndex: number; readonly: boolean; hideIndex: boolean; renderIconAndLine(step: Step, index: number): import("lit").TemplateResult<1>; renderIcon(step: Step, index: number): number | import("lit").TemplateResult<1> | null; render(): import("lit").TemplateResult<1>; _onStepClick(index: number): void; }