Skip to content

Commit b6a0fc1

Browse files
committed
chore: update-documentation
1 parent 5536395 commit b6a0fc1

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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

6473
2. Import and use components in your application:
6574

@@ -82,8 +91,8 @@ function MyComponent() {
8291
If 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

8998
You can find the available theme variables [here](src/styles/theme.css).

src/lib/draggable-list/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 }) =>

0 commit comments

Comments
 (0)