import React from 'react'; /** * Handler which is invoked when user clicks given step * * @alias OnStepClickHandler * @memberof Step */ export declare type OnStepClickHandler = ( /** * The same number what was passed to a {@link Step} */ number?: number | string) => boolean | void; /** * @alias StepProps * @memberof Step */ export declare type StepProps = { /** number presented in a circle */ number?: number | string; /** indicates if given step is done */ completed?: boolean; /** indicates if given step is active */ active?: boolean; /** turn off any */ disabled?: boolean; /** handler which passes a number of the step in an argument */ onClick?: OnStepClickHandler; /** Optional className */ className?: string; }; /** * @classdesc * * * * Step represents one of the tab in placed inside {@link Stepper} component. * You can use it alone or with before-mentioned {@link Stepper}. * * ### Usage * * ```javascript * import { Step, StepProps } from '@admin-bro/design-system' * ``` * * * @hideconstructor * @see Stepper * @see StepProps * @see OnStepClickHandler * @subcategory Molecules * @component * @example Regular step * return ( * * Normal Step * * ) * * @example Active steps * return ( * * I am active * * ) * * @example Active steps * return ( * * This was done !!! * * ) * * @example Clickable step * const onClick = () => alert('Why did you click me?') * * return ( * * Click me if you dare * * ) * @section design-system */ declare const Step: React.FC; export { Step }; export default Step;