UNPKG

@redocly/theme

Version:

Shared UI components lib

14 lines (13 loc) 499 B
import React from 'react'; import type { JSX } from 'react'; type AdmonitionTypeProps = { type: 'warning' | 'success' | 'danger' | 'info'; }; export type AdmonitionProps = Partial<AdmonitionTypeProps> & { name?: string; className?: string; 'data-source'?: string; 'data-hash'?: string; }; export declare function Admonition({ type, name, children, className, 'data-source': dataSource, 'data-hash': dataHash, }: React.PropsWithChildren<AdmonitionProps>): JSX.Element; export {};