Use CSSProperties for button style prop (#33492)

GitOrigin-RevId: 0f531c58d8ec82930bd603c19af840338f0b512e
This commit is contained in:
Alf Eaton
2026-05-11 10:36:37 +01:00
committed by Copybot
parent b3beca0e8d
commit c9d4edbb5b

View File

@@ -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'