Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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

```