https://github.com/bjoluc/next-chakra-ui
Chakra UI React components for Next.js
https://github.com/bjoluc/next-chakra-ui
Last synced: 11 months ago
JSON representation
Chakra UI React components for Next.js
- Host: GitHub
- URL: https://github.com/bjoluc/next-chakra-ui
- Owner: bjoluc
- License: mit
- Created: 2022-07-15T17:32:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T14:20:26.000Z (over 3 years ago)
- Last Synced: 2025-07-03T09:53:40.886Z (12 months ago)
- Language: TypeScript
- Size: 883 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# next-chakra-ui
[](https://www.npmjs.com/package/next-chakra-ui)
[](https://github.com/bjoluc/next-chakra-ui/actions)
[](https://codecov.io/gh/bjoluc/next-chakra-ui)
[](https://github.com/xojs/xo)
[](https://github.com/semantic-release/semantic-release)
[Chakra UI](https://chakra-ui.com/) React components for [Next.js](https://nextjs.org/) (currently only link components)
## Motivation
In order for Chakra UI links to work in Next.js projects, they need to be wrapped in the [`next/link`](https://nextjs.org/docs/api-reference/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!
## Installation
```
npm install next-chakra-ui
```
## Components
- [`Link`](main/src/Link.tsx): A Chakra UI [`Link`](https://chakra-ui.com/docs/components/link) component wrapped in a [`next/link`](https://nextjs.org/docs/api-reference/next/link)
- [`LinkButton`](main/src/LinkButton.tsx): A Chakra UI [`Button`](https://chakra-ui.com/docs/components/button) component wrapped in a [`next/link`](https://nextjs.org/docs/api-reference/next/link). It renders an HTML anchor element without composing Chakra UI's `Link`, so the button styling remains untouched.
- [`LinkIconButton`](main/src/LinkIconButton.tsx): A Chakra UI [`IconButton`](https://chakra-ui.com/docs/components/icon-button) component wrapped in a [`next/link`](https://nextjs.org/docs/api-reference/next/link). It renders an HTML anchor element without composing Chakra UI's `Link`, so the button styling remains untouched.