# svelte-virtualized-auto-sizer

> Port from react-virtualized-auto-sizer - High-order component that automatically adjusts the width and height of a single child.

Latest version **1.0.0** (published 2021-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install svelte-virtualized-auto-sizer
pnpm add svelte-virtualized-auto-sizer
yarn add svelte-virtualized-auto-sizer
bun add svelte-virtualized-auto-sizer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-02-19 |
| First published | 2021-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | micha-lmxt |
| Maintainers | micha-lmxt |
| Keywords | react, reactjs, virtual, svelte, sveltejs, window, windowed, list, scrolling, infinite, virtualized, table, grid, spreadsheet |

## Links

- npm: https://www.npmjs.com/package/svelte-virtualized-auto-sizer
- Repository: https://github.com/micha-lmxt/svelte-virtualized-auto-sizer
- Homepage: https://github.com/micha-lmxt/svelte-virtualized-auto-sizer/
- Issues: https://github.com/micha-lmxt/svelte-virtualized-auto-sizer/issues
- npm.io page: https://npm.io/package/svelte-virtualized-auto-sizer

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-02-19

## 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

<AutoSizer let:width={childWidth} let:height={childHeight}>
    <div 
    style={"width:"+childWidth+"px;height:"+childHeight+"px;"}
    >Test</div>
</AutoSizer>

```

---
_Source: https://npm.io/package/svelte-virtualized-auto-sizer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
