@payfit/unity-components
Version:
22 lines (21 loc) • 903 B
TypeScript
import { PropsWithChildren } from 'react';
/** Props for {@link AIOutcomeCardAction}. */
export type AIOutcomeCardActionProps = PropsWithChildren<Record<never, never>>;
/**
* Communicates the Outcome Card's available next step without adding visual
* weight to the outcome itself.
*
* Renders `children` with the prescribed action typography and hides the
* label from assistive technology when the parent card already exposes the
* accessible outcome name and description.
*
* Compose `AIOutcomeCardAction` inside `AIOutcomeCardActions` and pass the
* visible action label as `children`.
* @param props - The visible action label.
* @param props.children - Text that describes the next action visually.
*/
declare const AIOutcomeCardAction: {
({ children }: AIOutcomeCardActionProps): import('react/jsx-runtime').JSX.Element;
displayName: string;
};
export { AIOutcomeCardAction };