|
@@ -275,10 +275,19 @@ export type StyleValue =
|
|
|
| CSSProperties
|
|
| CSSProperties
|
|
|
| Array<StyleValue>
|
|
| Array<StyleValue>
|
|
|
|
|
|
|
|
|
|
+// Support for `class` attribute
|
|
|
|
|
+export type ClassValue =
|
|
|
|
|
+ | false
|
|
|
|
|
+ | null
|
|
|
|
|
+ | undefined
|
|
|
|
|
+ | string
|
|
|
|
|
+ | Record<string, any>
|
|
|
|
|
+ | Array<ClassValue>
|
|
|
|
|
+
|
|
|
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
innerHTML?: string | undefined
|
|
innerHTML?: string | undefined
|
|
|
|
|
|
|
|
- class?: any
|
|
|
|
|
|
|
+ class?: ClassValue | undefined
|
|
|
style?: StyleValue | undefined
|
|
style?: StyleValue | undefined
|
|
|
|
|
|
|
|
// Standard HTML Attributes
|
|
// Standard HTML Attributes
|
|
@@ -916,7 +925,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
* SVG Styling Attributes
|
|
* SVG Styling Attributes
|
|
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
|
*/
|
|
*/
|
|
|
- class?: any
|
|
|
|
|
|
|
+ class?: ClassValue | undefined
|
|
|
style?: StyleValue | undefined
|
|
style?: StyleValue | undefined
|
|
|
|
|
|
|
|
color?: string | undefined
|
|
color?: string | undefined
|