Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neplextech/edge-ui
Internal components library based on shadcn-ui
https://github.com/neplextech/edge-ui
component library react tailwind typescript ui
Last synced: about 1 month ago
JSON representation
Internal components library based on shadcn-ui
- Host: GitHub
- URL: https://github.com/neplextech/edge-ui
- Owner: neplextech
- License: other
- Created: 2023-02-17T13:49:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-14T18:53:21.000Z (11 months ago)
- Last Synced: 2024-10-01T02:44:36.638Z (2 months ago)
- Topics: component, library, react, tailwind, typescript, ui
- Language: TypeScript
- Homepage: https://ui.neplextech.com
- Size: 2.71 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - neplextech/edge-ui - Internal components library based on shadcn-ui (TypeScript)
README
# EdgeUI
UI component library for React based on [shadcn ui](https://ui.shadcn.com).
> **Note:** This library is built for our internal use case, however feel free to use it in your project if needed.
# Installation
```bash
$ npm install @edge-ui/react
```# Usage
EdgeUI is RSC compatible. It comes with shadcn ui components with theme and layout components as well as some hooks. You can use it however you like.
### Example
1. EdgeUI exports typescript files without compiled javascript code. Therefore, you may need to tell your bundler to transpile `@edge-ui/react` package. Here is an example with next.js:
```js
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@edge-ui/react']
};module.exports = nextConfig;
```2. You need to register edge-ui tailwindcss plugin in your tailwind config file.
```ts
// tailwind.config.ts
import { Config } from 'tailwindcss';
import twedge from '@edge-ui/react/tailwind-plugin';const config: Config = {
content: [
'./src/**/*.{js,jsx,ts,tsx}',
// include edge-ui components in the content path
twedge.getContentPath()
],
// register the plugin
plugins: [twedge()]
};export default config;
```3. You can then start using edge-ui components in your project. The `ThemeProvider` or `PageLayout` is not required to use the components.
```jsx
// app/layout.jsx
import './globals.css';
import { PageLayout, ThemeProvider } from '@edge-ui/react';export default function RootLayout(children) {
return (
{children}
);
}
```# Website
[https://ui.neplextech.com](https://ui.neplextech.com)
# GitHub
[https://github.com/neplextech/edge-ui](https://github.com/neplextech/edge-ui)