1.0.18 • Published 5 months ago
lsp-uikit v1.0.18
LSP UI KIT
Installation
To install the package, run:
npm install lsp-uikit
# or (if you are using React 19)
npm install lsp-uikit --force
Usage
Importing Components
You can import components directly from the package:
import { Button } from 'lsp-uikit';
Importing Hooks
Hooks can be imported as follows:
import { useMobile } from 'lsp-uikit/useMobile';
import { useToast } from 'lsp-uikit/useToast';
Importing Utility Functions
Utility functions can be imported as follows:
import { cn } from 'lsp-uikit/cn';
Tailwind Configuration
To use Tailwind with this library, extend your Tailwind config:
Import the package's Tailwind base configuration:
// tailwind.config.js module.exports = { ...baseConfig, content: [ ..., './node_modules/lsp-uikit/**/*.{js,ts,jsx,tsx}', ], presets: [require('lsp-uikit/tailwind-config.js')], };
Ensure you have Tailwind installed in your project:
npm install tailwindcss postcss autoprefixer -D
Importing Global Styles
To apply global styles, import the CSS files in your main entry file:
/* global.css */
@import 'lsp-uikit/styles.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
...
}
This will ensure that the library's styles are applied properly.
1.0.18
5 months ago
1.0.17
5 months ago
1.0.16
5 months ago
1.0.15
5 months ago
1.0.14
5 months ago
1.0.13
5 months ago
1.0.12
5 months ago
1.0.11
5 months ago
1.0.10
5 months ago
1.0.9
5 months ago
1.0.8
5 months ago
1.0.7
5 months ago
1.0.6
5 months ago
1.0.5
5 months ago
1.0.3
5 months ago
1.0.2
5 months ago
1.0.1
5 months ago
1.0.0
5 months ago