Stop mouseUp propagation in statuses

This commit is contained in:
Alex Gleason
2022-11-19 14:36:58 -06:00
parent a0597a6445
commit e973d69c61
10 changed files with 269 additions and 259 deletions

View File

@@ -8,7 +8,7 @@ import { useButtonStyles } from './useButtonStyles';
import type { ButtonSizes, ButtonThemes } from './useButtonStyles';
interface IButton {
interface IButton extends Pick<React.HTMLAttributes<HTMLButtonElement>, 'onClick' | 'onMouseUp'> {
/** Whether this button expands the width of its container. */
block?: boolean,
/** Elements inside the <button> */
@@ -19,8 +19,6 @@ interface IButton {
disabled?: boolean,
/** URL to an SVG icon to render inside the button. */
icon?: string,
/** Action when the button is clicked. */
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void,
/** A predefined button size. */
size?: ButtonSizes,
/** Text inside the button. Takes precedence over `children`. */