From bd641e873fcf506760181797188728eb2f09e1e9 Mon Sep 17 00:00:00 2001 From: Gianluca Casati Date: Mon, 29 Jul 2024 11:19:54 +0200 Subject: [PATCH] copy TitleModifiers to title and subtitle props --- src/react.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/react.tsx b/src/react.tsx index 96536bfa..641cfa6f 100644 --- a/src/react.tsx +++ b/src/react.tsx @@ -2340,8 +2340,12 @@ export const Subtitle: FC> = ({ ) export type SubtitleProps = Omit, "is"> & BulmaProp & + TagProp<"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p"> & IsSkeletonProp & - Titlemodifiers + Partial<{ + hasSkeleton: boolean + is: 1 | 2 | 3 | 4 | 5 | 6 + }> /** * The inevitable HTML table, with special case cells. @@ -2664,13 +2668,10 @@ export const Title: FC> = ({ ) export type TitleProps = Omit, "is"> & BulmaProp & + TagProp<"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p"> & IsSkeletonProp & - Titlemodifiers & - Partial<{ - isSpaced: boolean - }> -type Titlemodifiers = TagProp<"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p"> & Partial<{ hasSkeleton: boolean is: 1 | 2 | 3 | 4 | 5 | 6 + isSpaced: boolean }>