@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
33 lines (32 loc) • 1.04 kB
TypeScript
import { HTMLAttributes, ReactElement } from 'react';
import { IPktStep } from './Step';
export interface IPktStepper extends HTMLAttributes<HTMLOListElement> {
/**
* The index of the current active step
*/
activeStep: number;
/**
* Children of the Stepper must be Step items. Either an Array of Step items or a single Step item.
*/
children: ReactElement<IPktStep>[] | ReactElement<IPktStep>;
/**
* Additional class names
*/
className?: string;
/**
* Boolean to hide the content of non-active steps content
* @default true
*/
hideNonActiveStepsContent?: boolean;
/**
* Boolean to hide the content and title of non-active steps
* @default false
*/
hideNonActiveSteps?: boolean;
/**
* Orientation of the stepper.
* @default vertical
*/
orientation?: 'horizontal' | 'vertical';
}
export declare const PktStepper: import('react').ForwardRefExoticComponent<IPktStepper & import('react').RefAttributes<HTMLOListElement>>;