Skip to content

Commit c468db6

Browse files
committed
Minor readme changes
1 parent d03fc38 commit c468db6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ Efficient, single direction virtual list/grid for Solid-js
77
* Keyboard navigation and focus management out of the box.
88
* Option to change items size based on available space.
99

10-
[Demo](https://codesandbox.io/s/friendly-darkness-pk74r)
10+
[Demo](https://codesandbox.io/s/minht11solid-virtual-container-demo-pk74r)
1111

1212
## Usage
13+
14+
```
15+
npm install @minht11/solid-virtual-container
16+
```
17+
1318
Create list item component.
1419
```tsx
1520
const ListItem = (props) => (
@@ -26,6 +31,8 @@ const ListItem = (props) => (
2631
```
2732
Create vertically scrolling virtual list
2833
```tsx
34+
import { VirtualContainer } from "@minht11/solid-virtual-container"
35+
2936
const App = () => {
3037
const items = [0, 1, 2, 3]
3138
let scrollTargetElement!: HTMLDivElement

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@minht11/solid-virtual-container",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Virtual list/grid for Solid-js.",
55
"author": "Justinas Delinda",
66
"license": "MIT",

0 commit comments

Comments
 (0)