tamagui
tamagui copied to clipboard
[bug] Can't style composable parts, such as `Dialog.Title`
Describe the bug
import { Dialog as TDialog, styled } from 'tamagui'
export const Dialog = TDialog
Dialog.Title = styled(Dialog.Title, {
fontWeight: 'bold',
color: '$color12',
fontSize: '$7',
})
I expect this usage to override Dialog.Title's styles. However, styled doesn't appear to work. This makes it hard to have a reusable dialog component.
To Reproduce
Lmk if you need a repro.
Hm, this works for me in the sandbox, even if i overwrite Dialog.Title:
Closing for now unless you see again.