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)

19 lines (18 loc) • 802 B
import { Choice } from '@stoplight/json-schema-viewer'; import { IMediaTypeContent } from '@stoplight/types'; import * as React from 'react'; import { BodyParameterValues, ParameterOptional } from './request-body-utils'; export interface FormDataBodyProps { specification: IMediaTypeContent; values: BodyParameterValues; onChangeValues: (newValues: BodyParameterValues) => void; onChangeParameterAllow: (newValue: ParameterOptional) => void; isAllowedEmptyValues: ParameterOptional; } export declare const FormDataBody: React.FC<FormDataBodyProps>; export interface OneOfMenuProps { choices: Choice[]; choice: Choice; onChange: (choice: Choice) => void; } export declare function OneOfMenu({ choices: subSchemas, choice, onChange }: OneOfMenuProps): JSX.Element | null;