@stoplight/elements-core
Version:
[](https://meta.stoplight.io/docs/elements) [](./LICENSE)
15 lines (14 loc) • 457 B
TypeScript
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 {};