UNPKG

827 BTypeScriptView Raw
1import React, { Component } from 'react';
2import { KnobStoreKnob } from '../KnobStore';
3interface PropFormProps {
4 knobs: KnobStoreKnob[];
5 onFieldChange: (changedKnob: KnobStoreKnob) => void;
6 onFieldClick: (knob: KnobStoreKnob) => void;
7}
8export default class PropForm extends Component<PropFormProps> {
9 static displayName: string;
10 static defaultProps: {
11 knobs: KnobStoreKnob[];
12 onFieldChange: () => void;
13 onFieldClick: () => void;
14 };
15 static propTypes: {
16 knobs: React.Validator<KnobStoreKnob[]>;
17 onFieldChange: React.Validator<(changedKnob: KnobStoreKnob) => void>;
18 onFieldClick: React.Validator<(knob: KnobStoreKnob) => void>;
19 };
20 makeChangeHandler(name: string, type: string): (value?: string) => void;
21 render(): JSX.Element;
22}
23export {};