react-lightning-design-system
Version:
Salesforce Lightning Design System components built with React
39 lines (38 loc) • 794 B
TypeScript
import React, { FC, ReactNode } from 'react';
import { Bivariant } from './typeUtils';
/**
*
*/
type SalesPathItemType = 'complete' | 'current' | 'incomplete';
type SalesPathKey = string | number;
/**
*
*/
export type SalesPathItemProps = {
className?: string;
eventKey?: SalesPathKey;
type?: SalesPathItemType;
title?: string;
completedTitle?: string;
};
/**
*
*/
export declare const SalesPathItem: FC<SalesPathItemProps>;
/**
*
*/
export type SalesPathProps = {
className?: string;
activeKey?: SalesPathKey;
defaultActiveKey?: SalesPathKey;
onSelect?: Bivariant<(itemKey: SalesPathKey) => void>;
children?: ReactNode;
};
/**
*
*/
export declare const SalesPath: React.FC<SalesPathProps> & {
PathItem: typeof SalesPathItem;
};
export {};