1.0.18 • Published 7 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
7 months ago
1.0.17
7 months ago
1.0.16
7 months ago
1.0.15
7 months ago
1.0.14
7 months ago
1.0.13
7 months ago
1.0.12
7 months ago
1.0.11
7 months ago
1.0.10
7 months ago
1.0.9
7 months ago
1.0.8
7 months ago
1.0.7
7 months ago
1.0.6
7 months ago
1.0.5
7 months ago
1.0.3
7 months ago
1.0.2
7 months ago
1.0.1
7 months ago
1.0.0
7 months ago