UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

25 lines 960 B
import * as React from 'react'; /** * Provides a default Content Security Policy (CSP) configuration for Base UI components that * require inline `<style>` or `<script>` tags. * * Documentation: [Base UI CSP Provider](https://base-ui.com/react/utils/csp-provider) */ export declare function CSPProvider(props: CSPProvider.Props): import("react/jsx-runtime").JSX.Element; export interface CSPProviderState {} export interface CSPProviderProps { children?: React.ReactNode; /** * The nonce value to apply to inline `<style>` and `<script>` tags. */ nonce?: string | undefined; /** * Whether inline `<style>` elements created by Base UI components should not be rendered. Instead, components must specify the CSS styles via custom class names or other methods. * @default false */ disableStyleElements?: boolean | undefined; } export declare namespace CSPProvider { type State = CSPProviderState; type Props = CSPProviderProps; }