nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.98k stars 1.54k forks source link

[BUG] - Button is exported in lower case 'button' #1573

Closed AbrahamDN closed 1 year ago

AbrahamDN commented 1 year ago

NextUI Version

2.1.10

Describe the bug

The Button component is exported in lowercase on @nextui-org/react, can't directly use it as a component this way.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Just try to import Button on your NextJS app (13.4.19)

Expected behavior

I expected import { Button } but instead I get import { button }" ^ Similar with ButtonGroup too.

Screenshots or Videos

image image

Operating System Version

Windows 11 Home

Browser

Chrome

jrgarciadev commented 1 year ago

Hey @AbrahamDN the lowercase button is the styles function which you can use in any framework, it is the tailwind-variants function https://github.com/nextui-org/nextui/blob/main/packages/core/theme/src/components/button.ts

You can find those declarations in the repository by clicking here:

CleanShot 2023-09-05 at 14 09 15@2x