Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micha-lmxt/svelte-virtualized-auto-sizer
High-order component that automatically adjusts the width and height of a single child.
https://github.com/micha-lmxt/svelte-virtualized-auto-sizer
react-virtualized reactjs svelte sveltejs
Last synced: 4 months ago
JSON representation
High-order component that automatically adjusts the width and height of a single child.
- Host: GitHub
- URL: https://github.com/micha-lmxt/svelte-virtualized-auto-sizer
- Owner: micha-lmxt
- License: mit
- Created: 2021-02-19T20:03:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T20:04:00.000Z (almost 4 years ago)
- Last Synced: 2024-10-01T15:48:42.744Z (4 months ago)
- Topics: react-virtualized, reactjs, svelte, sveltejs
- Language: JavaScript
- Homepage: https://gradientdescent.de/porting-react/
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-virtualized-auto-sizer
> Svelte port of the AutoSizer component from react-virtualized.
High-order component that automatically adjusts the width and height of a single child. Read more about this component in [my blog](https://gradientdescent.de/porting-react)
[![NPM](https://img.shields.io/npm/v/svelte-virtualized-auto-sizer.svg)](https://www.npmjs.com/package/svelte-virtualized-auto-sizer)
## Install
```bash
npm install --save-dev svelte-virtualized-auto-sizer
```## Documentation
Please see API documentation of "AutoSizer" in `react-virtualized` package [here](https://github.com/bvaughn/react-virtualized/blob/master/docs/AutoSizer.md).
On the props style and children are removed, since these are React-specific.
Instead, use slot props:
```html
Test```