import type { JSX, ValidComponent } from "@solidjs/web"; import type { BaseUIComponentProps, NativeButtonProps } from "../internals/types.js"; export interface ButtonState { /** * Whether the button should ignore user interaction. */ disabled: boolean; } export interface ButtonProps extends NativeButtonProps, BaseUIComponentProps<"button", ButtonState> { /** * Tag/component to render. Defaults to `"button"`. Replaces the * pre-spike `render` prop (axis G). */ as?: ValidComponent; /** * Whether the button should be focusable when disabled. * @default false */ focusableWhenDisabled?: boolean | undefined; } /** * A button component that can be used to trigger actions. * Renders a `