UNPKG

@freecodecamp/ui

Version:

The freeCodeCamp.org open-source UI components

18 lines (17 loc) 462 B
interface PrismFormattedBaseProps { className?: string; text: string; getCodeBlockAriaLabel: (codeName: string) => string; useSpan?: boolean; noAria?: boolean; hasLineNumbers?: boolean; } type PrismFormattedDisclosure = { isCollapsible?: false; disclosureLabel?: never; } | { isCollapsible: true; disclosureLabel: string; }; export type PrismFormattedProps = PrismFormattedBaseProps & PrismFormattedDisclosure; export {};