mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Use CSSProperties for button style prop (#33492)
GitOrigin-RevId: 0f531c58d8ec82930bd603c19af840338f0b512e
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
export type ButtonProps = {
|
||||
children?: ReactNode
|
||||
children?: React.ReactNode
|
||||
className?: string
|
||||
disabled?: boolean
|
||||
download?: boolean | string
|
||||
@@ -21,7 +19,7 @@ export type ButtonProps = {
|
||||
onFocus?: React.FocusEventHandler<HTMLButtonElement>
|
||||
onBlur?: React.FocusEventHandler<HTMLButtonElement>
|
||||
size?: 'sm' | 'lg' | undefined
|
||||
style?: Record<PropertyKey, string>
|
||||
style?: React.CSSProperties
|
||||
active?: boolean
|
||||
trailingIcon?: string | React.ReactNode
|
||||
type?: 'button' | 'reset' | 'submit'
|
||||
|
||||
Reference in New Issue
Block a user