tailwind-variants-issue
v0.0.2
Published
to reproduce the issue:
Downloads
2
Readme
Tailwind Variants Type Issue
to reproduce the issue:
in any react project install the package:
npm i tailwind-variants-issue
then import Button component from the package and use it in your project:
import { Button } from 'tailwind-variants-issue'
function App() {
return (
<div className="App">
<Button
variant="link"
color="gray"
/>
</div>
);
}
then typescript will throw an error on the variant/color props with the following message:
TS2322: Type string is not assignable to type never