svelte-flex
💪 A simple and reusable flexbox component for Svelte.
---
A simple and reusable flexbox component for [Svelte](https://svelte.dev/).
- Sane defaults.
- Simple API.
- Reactive props.
- Minimal size.
[**Try me on CodeSandbox!**](https://codesandbox.io/s/svelte-flex-5s45y)
### Requirements
This package assumes you are using at least Svelte `4.x`, and that is the only major version which is actively tested. It may work in some older versions, however
This package requires at least `svelte@3.46.2` to work, as it makes use of the [style directives](https://github.com/sveltejs/rfcs/pull/42) feature introduced in the [`3.46.x` version](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md#3462).
### Installation
This package is available on NPM, and you can install it with `npm` or `yarn`:
```
npm install -D svelte-flex
yarn add -D svelte-flex
```
### Usage
Import the `Flex` component and use it in your Svelte project.
```svelte