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