UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

9 lines (8 loc) 529 B
import type { ReactElement } from "react"; import { type FlexVariants } from "../style/Flex.js"; import { type ClickableProps } from "./Clickable.js"; import { type InputProps } from "./Input.js"; export interface ButtonInputProps extends InputProps, ClickableProps, FlexVariants { } /** Return either a `<button>` or an `<a href="">` styled as an input, based on whether an `onClick` or `href` prop is provided. */ export declare function ButtonInput({ title, placeholder, children, ...props }: ButtonInputProps): ReactElement;