ButtonInputcomponent
ButtonInput({ title, placeholder, children = title, ...props }: ButtonInputProps): ReactElement| Param | Type | |
|---|---|---|
props | ButtonInputProps | 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
placeholderwhen nochildren/titlecontent is supplied.
Examples
<ButtonInput name="choose" onClick={open}>Choose…</ButtonInput>