Chakra UI React components for Next.js (currently only link components)
In order for Chakra UI links to work in Next.js projects, they need to be wrapped in the next/link
component.
This package exports Chakra UI Link
components that works as next/link
s (so I don't ever copy-paste link components between projects again).
If you have ideas for other helpful (non-opinionated) components, feel free to contribute them!
npm install next-chakra-ui
Link
: A Chakra UILink
component wrapped in anext/link
LinkButton
: A Chakra UIButton
component wrapped in anext/link
. It renders an HTML anchor element without composing Chakra UI'sLink
, so the button styling remains untouched.LinkIconButton
: A Chakra UIIconButton
component wrapped in anext/link
. It renders an HTML anchor element without composing Chakra UI'sLink
, so the button styling remains untouched.