mirror of
https://github.com/acid-info/lsd.git
synced 2025-02-04 13:13:45 +00:00
fix: make Button's icon prop type optional
This commit is contained in:
parent
24b67d5d98
commit
79773ee31d
@ -4,7 +4,7 @@ import { buttonClasses } from './Button.classes'
|
|||||||
|
|
||||||
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
||||||
size?: 'large' | 'medium' | 'small'
|
size?: 'large' | 'medium' | 'small'
|
||||||
icon: React.ReactNode
|
icon?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Button: React.FC<ButtonProps> & {
|
export const Button: React.FC<ButtonProps> & {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user