UNPKG

@storybook/addon-knobs

Version:
21 lines (20 loc) 828 B
import React, { Component } from 'react'; import { KnobControlConfig, KnobControlProps } from './types'; declare type TextTypeKnobValue = string; export declare type TextTypeKnob = KnobControlConfig<TextTypeKnobValue> & { value?: TextTypeKnobValue; }; declare type TextTypeProps = KnobControlProps<TextTypeKnobValue>; export default class TextType extends Component<TextTypeProps> { static defaultProps: TextTypeProps; static propTypes: { knob: React.Validator<KnobControlConfig<string>>; onChange: React.Validator<(value: string) => string>; }; static serialize: (value: TextTypeKnobValue) => string; static deserialize: (value: TextTypeKnobValue) => string; shouldComponentUpdate(nextProps: TextTypeProps): boolean; private handleChange; render(): JSX.Element; } export {};