Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Passed default props for Text component
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzlamateen committed May 17, 2024
1 parent 1c9dc7a commit bb482aa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ui/src/primitives/tailwind/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const Text = ({
className,
children,
component = 'span',
theme = 'primary'
theme = 'primary',
...props
}: TextProps): JSX.Element => {
const Component = componentTypes[component]

Expand All @@ -63,7 +64,11 @@ const Text = ({
className
)

return <Component className={twClassName}>{children}</Component>
return (
<Component className={twClassName} {...props}>
{children}
</Component>
)
}

export default Text

0 comments on commit bb482aa

Please sign in to comment.