Skip to content

Commit

Permalink
copy TitleModifiers to title and subtitle props
Browse files Browse the repository at this point in the history
  • Loading branch information
fibo committed Jul 29, 2024
1 parent a3a5206 commit 09254c3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2340,8 +2340,12 @@ export const Subtitle: FC<PropsWithChildren<SubtitleProps>> = ({
)
export type SubtitleProps = Omit<HTMLAttributes<HTMLElement>, "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.
Expand Down Expand Up @@ -2664,13 +2668,10 @@ export const Title: FC<PropsWithChildren<TitleProps>> = ({
)
export type TitleProps = Omit<HTMLAttributes<HTMLElement>, "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
}>

0 comments on commit 09254c3

Please sign in to comment.