@@ -7,14 +7,19 @@ import * as React from "react";
77 * @param html - The HTML generated by `renderToStaticMarkup()` or `renderToString()`
88 * @param styles - An instance of `styles()`. Defaults to the default styles instance
99 * in `@dash-ui/styles`.
10+ * @param options
11+ * @param options.nonce
1012 */
11- export declare function toComponent ( html : string , styles ?: Styles < any , any > ) : React . ReactElement ;
13+ export declare function toComponent ( html : string , styles ?: Styles < any , any > , options ?: {
14+ nonce ?: string ;
15+ } ) : React . ReactElement ;
1216/**
1317 * A React component for injecting SSR CSS styles into Next.js documents
1418 *
1519 * @param root0
1620 * @param root0.html
1721 * @param root0.styles
22+ * @param root0.nonce
1823 * @example
1924 * // _document.js
2025 * import React from 'react'
@@ -36,7 +41,7 @@ export declare function toComponent(html: string, styles?: Styles<any, any>): Re
3641 * }
3742 * }
3843 */
39- export declare function Style ( { html, styles } : StyleProps ) : React . ReactElement < any , string | React . JSXElementConstructor < any > > ;
44+ export declare function Style ( { html, styles, nonce } : StyleProps ) : React . ReactElement < any , string | React . JSXElementConstructor < any > > ;
4045export interface StyleProps {
4146 /**
4247 * The HTML generated by Next.js, `renderToStaticMarkup()` or `renderToString()`
@@ -46,6 +51,10 @@ export interface StyleProps {
4651 * An instance of `styles()`. Defaults to the default styles instance in `@dash-ui/styles`.
4752 */
4853 styles ?: Styles < any , any > ;
54+ /**
55+ * A nonce for the `<style>` tag.
56+ */
57+ nonce ?: Styles < any , any > [ "dash" ] [ "sheet" ] [ "nonce" ] ;
4958}
5059/**
5160 * Creates a Gatsby replaceRenderer for injecting styles generated by Dash on
0 commit comments