0.0.2 • Published 1 year ago

tailwind-variants-issue v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
0.0.2

1 year ago

0.0.1

1 year ago