nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
1.98k stars 77 forks source link

Wrong type for `variant` on `TextInput` #292

Closed paulrostorp closed 6 months ago

paulrostorp commented 1 year ago

With ts@5.0.4 and dripsy 4.3.3 I get the following error when using variant on a dripsy TextInput: Screenshot 2023-06-01 at 10 38 30

I can force the expected undefined type by doing the following

variant={"text.title3Emphasis" as unknown as undefined}
paulrostorp commented 1 year ago

it seems like strictVariants: false has no effect

nandorojo commented 1 year ago

I think inputs have their own variants under theme.inputs that’s why.

nandorojo commented 11 months ago

did you try using theme.inputs?