UNPKG

@activecollab/components

Version:

ActiveCollab Components

22 lines 1.08 kB
import React, { ComponentType, ReactNode } from "react"; /** Heading typography of a TitledText — a component prop, not wire data. */ export type TitledTextVariant = "title1" | "title2" | "header2"; /** Props every heading in the trio accepts: content plus an optional anchor id. */ interface TitledTextHeadingProps { id?: string; children?: ReactNode; } /** * The one heading trio the envelope renders — TitledText variants and the * Portable Text `heading` / `titled-text` levels all resolve through this * map, so the typography can never drift between them. */ export declare const titledTextHeadings: Record<TitledTextVariant, ComponentType<TitledTextHeadingProps>>; export interface ITitledTextProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> { title: string; variant?: TitledTextVariant; } /** A heading plus body, with typography control on the heading. */ export declare const TitledText: React.ForwardRefExoticComponent<ITitledTextProps & React.RefAttributes<HTMLDivElement>>; export {}; //# sourceMappingURL=TitledText.d.ts.map