UNPKG

@stencila/thema

Version:

Themes for executable documents

20 lines (19 loc) 613 B
import React from 'react'; interface Props { name: string; value: string; valueOverride?: string; onChange: (variable: string, value: string, commit?: boolean) => void; } interface State { hasError: boolean; } export declare class VariableInput extends React.PureComponent<Props, {}> { constructor(props: Props); static getDerivedStateFromError(): State; componentDidCatch(error: unknown, errorInfo: unknown): void; clear: (e: React.MouseEvent<HTMLButtonElement>) => void; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; render(): JSX.Element; } export {};