ButtonInputcomponent

ButtonInput({ title, placeholder, children = title, ...props }: ButtonInputProps): ReactElement
ParamType
propsButtonInputProps
Props for ButtonInput, a clickable element styled to match form inputs. required
Return
ReactElement
A Clickable element styled with the button-input class.

Return either a <button> or an <a href=""> styled as an input, based on whether an onClick or href prop is provided.

  • Falls back to rendering the placeholder when no children/title content is supplied.

Examples

<ButtonInput name="choose" onClick={open}>Choose…</ButtonInput>