Skip to content

Commit

Permalink
close #184
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed May 16, 2023
1 parent 6300035 commit c3c8874
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/dripsy/src/core/css/create-themed-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,16 @@ export function createThemedComponent<

const TheComponent = as || Component

return <TheComponent {...(props as any)} ref={ref} style={styles} />
return (
<TheComponent
{...(props as any)}
ref={ref}
style={styles}
{...{
variant: variant || options.defaultVariant,
}}
/>
)
})

WrappedComponent.displayName = `Dripsy.${
Expand Down

1 comment on commit c3c8874

@vercel
Copy link

@vercel vercel bot commented on c3c8874 May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.