carbon-react
Version:
A library of reusable React components for easily building user interfaces.
16 lines (15 loc) • 710 B
TypeScript
import React from "react";
export interface StepFlowTitleProps {
/** The title of the current step. */
titleString: string;
/** Set the variant of the internal 'Typography' component which contains the title.
* However, despite the chosen variant the styling will always be overridden.
*/
titleVariant?: "h1" | "h2";
/** Override the screen reader only title with any additional context or information.
* If not provided, only the `titleString` prop will be used.
*/
screenReaderOnlyTitle?: string;
}
export declare const StepFlowTitle: ({ titleString, titleVariant, screenReaderOnlyTitle, }: StepFlowTitleProps) => React.JSX.Element;
export default StepFlowTitle;