From c468db6203b38837441bae74152f24efd635d12f Mon Sep 17 00:00:00 2001 From: minht11 Date: Sun, 4 Jul 2021 08:41:00 +0300 Subject: [PATCH] Minor readme changes --- README.md | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b53fd8..23382af 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,14 @@ Efficient, single direction virtual list/grid for Solid-js * Keyboard navigation and focus management out of the box. * Option to change items size based on available space. -[Demo](https://codesandbox.io/s/friendly-darkness-pk74r) +[Demo](https://codesandbox.io/s/minht11solid-virtual-container-demo-pk74r) ## Usage + +``` +npm install @minht11/solid-virtual-container +``` + Create list item component. ```tsx const ListItem = (props) => ( @@ -26,6 +31,8 @@ const ListItem = (props) => ( ``` Create vertically scrolling virtual list ```tsx +import { VirtualContainer } from "@minht11/solid-virtual-container" + const App = () => { const items = [0, 1, 2, 3] let scrollTargetElement!: HTMLDivElement diff --git a/package.json b/package.json index c8b59cf..1cae834 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@minht11/solid-virtual-container", - "version": "0.1.0", + "version": "0.1.1", "description": "Virtual list/grid for Solid-js.", "author": "Justinas Delinda", "license": "MIT",