UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

38 lines (37 loc) 1.36 kB
/// <reference types="react" /> import { fontUrlByFileBasename } from "./zz_internal/fontUrlByFileBasename"; import "@codegouvfr/react-dsfr/assets/dsfr_plus_icons.scss"; export type DsfrHeadProps = { /** If not provided no fonts are preloaded. * Preloading of fonts is only enabled in production. */ preloadFonts?: (keyof typeof fontUrlByFileBasename)[]; /** * When set, the value will be used as the nonce attribute of subsequent script tags. * * Don't forget to add `doCheckNonce: true` in {@link startReactDsfr} options. * * @see https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/nonce */ nonce?: string; /** * Enable Trusted Types with a custom policy name. * * Don't forget to add `trustedTypesPolicyName` in {@link startReactDsfr} options. * * @see https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types * @see {@link DEFAULT_TRUSTED_TYPES_POLICY_NAME} * @default "react-dsfr" */ trustedTypesPolicyName?: string; /** * Disable Marianne favicon import. * Enable this option if you want to use your own favicon. * * @default false */ doDisableFavicon?: boolean; }; export declare function DsfrHeadBase(props: DsfrHeadProps & { Link: Function; }): JSX.Element;