import React, { HTMLAttributes } from "react"; import FormSummaryAnswer from "./FormSummaryAnswer.js"; import FormSummaryAnswers from "./FormSummaryAnswers.js"; import FormSummaryEditLink from "./FormSummaryEditLink.js"; import FormSummaryFooter from "./FormSummaryFooter.js"; import FormSummaryHeader from "./FormSummaryHeader.js"; import FormSummaryHeading from "./FormSummaryHeading.js"; import FormSummaryLabel from "./FormSummaryLabel.js"; import FormSummaryValue from "./FormSummaryValue.js"; interface FormSummaryComponent extends React.ForwardRefExoticComponent> { /** * Must include ``. */ Header: typeof FormSummaryHeader; /** * Typographic Heading to use in the `FormSummary.Header` component. */ Heading: typeof FormSummaryHeading; /** * Link to edit the answers to use in the `FormSummary.Footer` component. Should link to the relevant part of the form. */ EditLink: typeof FormSummaryEditLink; /** * Wrapper component for the answers. */ Answers: typeof FormSummaryAnswers; /** * Wrapper component for each answer. To be used in the `FormSummary.Answers` component. */ Answer: typeof FormSummaryAnswer; /** * Corresponds to the question in the form. To be used in the `FormSummary.Answer` component. */ Label: typeof FormSummaryLabel; /** * Corresponds to the answer in the form. To be used in the `FormSummary.Answer` component. */ Value: typeof FormSummaryValue; /** * Footer component for the form summary, if applicable this is a good place for ``. */ Footer: typeof FormSummaryFooter; } export interface FormSummaryProps extends HTMLAttributes { /** * Must include: * * - `` * - `` * - `` (optional) */ children: React.ReactNode; } /** * A summary of a previously answered form. * * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/formsummary) * * @example * * * HeadingTekst * * * * Navn * Ola Nordmann * * * * * * */ export declare const FormSummary: FormSummaryComponent; export default FormSummary;