0.0.3 • Published 2 years ago
@looma/core v0.0.3
Looma Core
Looma core is a React component library containing a set of core components.
Installation
Run the following command using pnpm:
pnpm add @looma/core
Using with Next.js
- Import the CSS directly into your project;
Go to pages/_app.js (or create this file if it doesn't exist yet) and add the CSS import:
import '@looma/core/dist/style.css';
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default MyApp
- You can then immport and use Looma core components;
import { Button } from '@looma/core';
export default function Index() {
return (
<Button variant="primary">Primary</Button>
)
}