Attempted import error: 'Text' is not exported from '@nextui-org/react' (imported as 'Text'). #2614
Replies: 6 comments 5 replies
-
Where's your code? NextUI v2 (Which is the latest version) doesn't even have a |
Beta Was this translation helpful? Give feedback.
-
import { Tooltip, Button, Grid, Avatar } from ***@***.***/react";
import { UserTwitterCard } from "./UserTwitterCard";
import { DeleteUser } from "./DeleteUser";
export default function App() {
return (
<Grid.Container gap={2} alignItems="center">
<Grid>
<Tooltip trigger="click" content={<DeleteUser />}>
<Link>
<Text b color="error">
Click Delete User
</Text>
</Link>
</Tooltip>
</Grid>
<Grid>
<Tooltip placement="top" content={<UserTwitterCard />}>
<Avatar
pointer
size="lg"
src="https://i.pravatar.cc/150?u=a042581f4e29026704d"
color="gradient"
bordered
squared
/>
</Tooltip>
</Grid>
</Grid.Container>
);
}
I have copied this code from below link
https://v1.nextui.org/docs/components/tooltip
…On Sun, 31 Mar, 2024, 5:04 pm Anthony, ***@***.***> wrote:
Where's your code? NextUI doesn't even have a Text component.
—
Reply to this email directly, view it on GitHub
<#2614 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBODAYR7PIRTHHSNURIINTY27YGFAVCNFSM6AAAAABFQIVJUWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNRUGQ3TO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Did you install v2 or v1. That’s the v1 documentation but the latest version is v2 and it doesn’t have a Text component |
Beta Was this translation helpful? Give feedback.
-
No, I have only installed @nextui-org/react.
So, which package should I have to install to access Text, Grid and Row
components?
…On Sun, 31 Mar, 2024, 8:42 pm Anthony, ***@***.***> wrote:
Did you install v2 or v1. That’s the v1 documentation but the latest
version is v2 and it doesn’t have a Text component
—
Reply to this email directly, view it on GitHub
<#2614 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBODA2HRJULSKUARC7EBK3Y3ARWDAVCNFSM6AAAAABFQIVJUWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNRVGM4TG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Does this means that the documentation on NextUI website is based on older
version?
…On Mon, 1 Apr, 2024, 12:04 am Junior Garcia, ***@***.***> wrote:
Those components were removed when we migrated to v2, please check this:
Text (needless) - @see <https://github.com/see>
https://tailwindcss.com/docs/font-size
Container (needless) - @see <https://github.com/see>
https://tailwindcss.com/docs/container
Grid (needless) - @see <https://github.com/see>
https://tailwindcss.com/docs/display#grid
—
Reply to this email directly, view it on GitHub
<#2614 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBODA3XKQHAOCY73K5SJWDY3BJLBAVCNFSM6AAAAABFQIVJUWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNRWGM3TC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Is there any way in v2 to open tooltip on click instead of hover?
…On Mon, 1 Apr, 2024, 9:33 am Anthony, ***@***.***> wrote:
No. I don’t know how you landed on the v1 documentation. I go to the
NextUi website and the default documentation is for v2 https://nextui.org/
—
Reply to this email directly, view it on GitHub
<#2614 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBODA7GHC4V7UZ4WLAU2D3Y3DL7JAVCNFSM6AAAAABFQIVJUWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNRYHE4TO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Why i am getting this error?
Beta Was this translation helpful? Give feedback.
All reactions