import type { ComponentPropsWithoutRef, PropsWithChildren, ReactNode } from 'react';
type AbstractProps
= P & {
/** 現在地。0始まり。 */
activeIndex?: number;
} & Omit, keyof P>;
export type Step = {
/** ステップラベル */
label: ReactNode;
/** 状態 */
status?: 'completed' | 'closed' | {
type: 'completed' | 'closed';
text: string;
};
};
export type VerticalStep = PropsWithChildren;
export type HorizontalStep = Step;
export type VerticalStepper = AbstractProps<{
type: 'vertical';
/** type=vertical では子要素を持てる */
steps: VerticalStep[];
}>;
export type HorizontalStepper = AbstractProps<{
type: 'horizontal';
steps: HorizontalStep[];
}>;
export {};