mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01: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 = {
|
export type ButtonProps = {
|
||||||
children?: ReactNode
|
children?: React.ReactNode
|
||||||
className?: string
|
className?: string
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
download?: boolean | string
|
download?: boolean | string
|
||||||
@@ -21,7 +19,7 @@ export type ButtonProps = {
|
|||||||
onFocus?: React.FocusEventHandler<HTMLButtonElement>
|
onFocus?: React.FocusEventHandler<HTMLButtonElement>
|
||||||
onBlur?: React.FocusEventHandler<HTMLButtonElement>
|
onBlur?: React.FocusEventHandler<HTMLButtonElement>
|
||||||
size?: 'sm' | 'lg' | undefined
|
size?: 'sm' | 'lg' | undefined
|
||||||
style?: Record<PropertyKey, string>
|
style?: React.CSSProperties
|
||||||
active?: boolean
|
active?: boolean
|
||||||
trailingIcon?: string | React.ReactNode
|
trailingIcon?: string | React.ReactNode
|
||||||
type?: 'button' | 'reset' | 'submit'
|
type?: 'button' | 'reset' | 'submit'
|
||||||
|
|||||||
Reference in New Issue
Block a user