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)

15 lines (14 loc) • 457 B
import { SelectProps } from '@stoplight/mosaic'; import * as React from 'react'; import { ParameterSpec } from './parameter-utils'; interface ParameterProps { parameter: ParameterSpec; value?: string; onChange: SelectProps['onChange']; isOptional: boolean; onChangeOptional: (optional: boolean) => void; canChangeOptional: boolean; validate?: boolean; } export declare const ParameterEditor: React.FC<ParameterProps>; export {};