File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,20 @@ npm install @kleros/ui-components-library
5555
5656### Setup
5757
58- 1 . Import the CSS at the top level of your application :
58+ 1 . Import the CSS:
5959
60- ``` javascript
61- import " @kleros/ui-components-library/style.css" ;
62- ```
60+ a. For Non-tailwind apps, import the CSS at top level of your app.
61+
62+ ``` javascript
63+ import " @kleros/ui-components-library/style.css" ;
64+ ```
65+
66+ b. For Tailwind apps, import the theme and mark the library as a source in your global.css file.
67+
68+ ``` css
69+ @import " ../../../node_modules/@kleros/ui-components-library/dist/assets/theme.css" ;
70+ @source "../../../node_modules/@kleros/ui-components-library";
71+ ```
6372
64732 . Import and use components in your application:
6574
@@ -82,8 +91,8 @@ function MyComponent() {
8291If you wish the use the library's tailwind theme variables in your tailwind app. You can utilize it by importing the theme file in your ` global.css ` file.
8392
8493``` css
85- @import tailwindcss @import
86- "../../../node_modules/@kleros/ui-components-library/dist/assets/theme.css";
94+ @import tailwindcss;
95+ @import " ../../../node_modules/@kleros/ui-components-library/dist/assets/theme.css" ;
8796```
8897
8998You can find the available theme variables [ here] ( src/styles/theme.css ) .
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ function DraggableList({
101101 { items . map ( ( item ) => {
102102 return (
103103 < ListBoxItem
104+ id = { item . id }
104105 key = { item . id }
105106 textValue = { item . name }
106107 className = { ( { isHovered, isDragging, isSelected } ) =>
You can’t perform that action at this time.
0 commit comments