2.5.0 • Published 2 years ago
@gryt/ui v2.5.0
@gryt/ui
Preview here
Install
npm i @gryt/ui @tailwindcss/typography tailwind daisyuior
yarn add @gryt/ui @tailwindcss/typography tailwind daisyuiTailwind configuration
// tailwind.config.js
module.exports = {
content: [
// ...
"./node_modules/@gryt/**/*.{js,ts}",
],
presets: [
// ...
require('@gryt/ui/tailwind')
]
// ...
}Styling
// _app.tsx
import { AppProps } from 'next/app';
import "@gryt/ui/style.scss";
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}Usage
Button
// somepage.tsx
import React, { Component } from 'react'
import { Button } from '@gryt/ui'
export default function SomePage() {
return (
<div>
<h1 className="text-2xl font-bold text-primary">Welcome!</h1>
<Button>Click me!</Button>
</div>
);
}Developing new components
Clone this repository and follow the steps below.
Preparation
Use the dev folder.
cd devInstall dependencies
yarnor
npm iStart development server
yarn devor
npm run devPublish changes
Use np
yarn global add np
npLicense
MIT © Gryt-chat
2.5.0
2 years ago
2.4.1
2 years ago
2.4.0
2 years ago
2.3.0
2 years ago
2.2.0
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.4.0
3 years ago
1.3.4
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago