Skip to content

Commit

Permalink
add Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
fibo committed May 19, 2024
1 parent dc2af57 commit df4cbd6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/react.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { FC, HTMLAttributes, PropsWithChildren } from "react"
import {
FC,
PropsWithChildren,
HTMLAttributes,
ProgressHTMLAttributes,
} from "react"
import { ClassnamesArg, classnames } from "./classnames.js"
import { ClassNames as Bulma } from "./bulma.js"

Expand All @@ -13,3 +18,14 @@ export const Div: FC<
{children}
</div>
)

export const Progress: FC<
PropsWithChildren<ProgressHTMLAttributes<HTMLProgressElement> & BulmaProp>
> = ({ bulma, className, children, ...props }) => (
<progress
className={classnames<string>(className, "progress", bulma)}
{...props}
>
{children}
</progress>
)

0 comments on commit df4cbd6

Please sign in to comment.