Change ESLint rules, lint
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -10,27 +10,27 @@ import type { ButtonSizes, ButtonThemes } from './useButtonStyles';
|
||||
|
||||
interface IButton {
|
||||
/** Whether this button expands the width of its container. */
|
||||
block?: boolean,
|
||||
block?: boolean
|
||||
/** Elements inside the <button> */
|
||||
children?: React.ReactNode,
|
||||
children?: React.ReactNode
|
||||
/** Extra class names for the button. */
|
||||
className?: string,
|
||||
className?: string
|
||||
/** Prevent the button from being clicked. */
|
||||
disabled?: boolean,
|
||||
disabled?: boolean
|
||||
/** URL to an SVG icon to render inside the button. */
|
||||
icon?: string,
|
||||
icon?: string
|
||||
/** Action when the button is clicked. */
|
||||
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void,
|
||||
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void
|
||||
/** A predefined button size. */
|
||||
size?: ButtonSizes,
|
||||
size?: ButtonSizes
|
||||
/** Text inside the button. Takes precedence over `children`. */
|
||||
text?: React.ReactNode,
|
||||
text?: React.ReactNode
|
||||
/** Makes the button into a navlink, if provided. */
|
||||
to?: string,
|
||||
to?: string
|
||||
/** Styles the button visually with a predefined theme. */
|
||||
theme?: ButtonThemes,
|
||||
theme?: ButtonThemes
|
||||
/** Whether this button should submit a form by default. */
|
||||
type?: 'button' | 'submit',
|
||||
type?: 'button' | 'submit'
|
||||
}
|
||||
|
||||
/** Customizable button element with various themes. */
|
||||
|
||||
Reference in New Issue
Block a user