UNPKG

@stoplight/elements-core

Version:

[![docs](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat-square)](https://meta.stoplight.io/docs/elements) [![license](https://img.shields.io/npm/l/@stoplight/elements?style=flat-square)](./LICENSE)

13 lines (12 loc) • 462 B
/// <reference types="react" /> import { IHttpOperationRequestBody } from '@stoplight/types'; export interface BodyProps { body: IHttpOperationRequestBody; onChange?: (requestBodyIndex: number) => void; isHttpWebhookOperation?: boolean; } export declare const isBodyEmpty: (body?: BodyProps['body']) => boolean; export declare const Body: { ({ body, onChange, isHttpWebhookOperation }: BodyProps): JSX.Element | null; displayName: string; };