UNPKG

@dabapps/roe

Version:

A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.

25 lines (24 loc) 849 B
import * as React from 'react'; import { OptionalComponentPropAndHTMLAttributes } from '../../types'; export interface CookieBannerRenderProps { dismiss: () => void; } export declare type Render = (props: CookieBannerRenderProps) => React.ReactElement<Record<string, unknown>>; export declare type CookieBannerProps = { /** * Takes a component as a function and renders as a child */ render: Render; /** * Positions the element at the 'top' or 'bottom' of the screen * @default 'bottom' */ position?: 'top' | 'bottom'; /** * Sets maximum age for the cookie in seconds * @default 60 * 60 * 24 * 365 */ maxAge?: number; } & OptionalComponentPropAndHTMLAttributes; declare const _default: React.MemoExoticComponent<(props: CookieBannerProps) => JSX.Element>; export default _default;