UNPKG

@payfit/unity-components

Version:

17 lines (16 loc) • 881 B
import { TextProps } from '../../../../../core/components/text/Text.js'; /** Props for {@link AIOutcomeCardTitle}. */ export type AIOutcomeCardTitleProps = Omit<TextProps, 'variant' | 'color' | 'className' | 'isTruncated' | 'style'>; /** * Names an Outcome Card so people and assistive technology can identify it. * * Renders `children` with the prescribed strong body typography and connects * that text to the parent card through `aria-labelledby`. * * Compose one `AIOutcomeCardTitle` inside `RawAIOutcomeCard` and pass the * outcome name as `children`. * @param props - Text attributes and the title `children`. * @param props.children - The outcome name announced as the card's label. */ declare const AIOutcomeCardTitle: import('react').ForwardRefExoticComponent<AIOutcomeCardTitleProps & import('react').RefAttributes<HTMLElement>>; export { AIOutcomeCardTitle };