1.5.1 • Published 6 months ago
@tastit/ui-kit v1.5.1
Tastit UI-KIT
Tech:
- Next typescript
- tailwind
How to use it?
npm install @tastit/ui-kit
- update your tailwind configuration file
tailwind.config.js
:
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@tastit/ui-kit/src/**/*.{js,ts,jsx,tsx}',
],
presets: [require('@tastit/ui-kit/tailwind.config.js')],
};
- import the global css in you main tsx file (
main.tsx
orApp.tsx
):
import '@tastit/ui-kit/src/global.css';
- use the components:
import { Button } from '@tastit/ui-kit';
Contribute
You can add global CSS in src/global.css
.
How to clean code
- use tailwind alias to avoid long
className
string - create react function component:
export function Button(props: ButtonProps) {}
- or
export const Button = (props: ButtonProps) => {}
- or
- create one folder per component with
- component
- unit tests
- storybook stories
1.6.0-next.2
6 months ago
1.6.0-next.1
6 months ago
1.5.1
6 months ago
1.5.0
6 months ago
1.5.1-next.1
6 months ago
1.5.0-next.1
6 months ago
1.4.0-next.9
6 months ago
1.5.0-next.2
6 months ago
1.4.0-next.6
6 months ago
1.4.0-next.7
6 months ago
1.4.0-next.8
6 months ago
1.4.0-next.5
7 months ago
1.4.0-next.3
7 months ago
1.4.0-next.4
7 months ago
1.4.0-next.2
7 months ago
1.4.0-next.1
8 months ago
1.4.0
8 months ago
1.3.0-next.13
8 months ago
1.3.0-next.12
8 months ago
1.3.0-next.11
8 months ago
1.3.0
9 months ago
1.3.0-next.10
9 months ago
1.3.0-next.9
9 months ago
1.3.0-next.8
9 months ago
1.3.0-next.7
9 months ago
1.3.0-next.6
9 months ago
1.3.0-next.5
9 months ago
1.3.0-next.4
9 months ago
1.3.0-next.3
9 months ago
1.3.0-next.2
9 months ago
1.3.0-next.1
9 months ago
1.2.0
9 months ago
1.1.5
9 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.1.1
9 months ago
1.1.0
9 months ago
1.0.0
9 months ago
0.0.0-development
9 months ago
0.0.0
9 months ago