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

https://github.com/filipchalupa/flexing-container


https://github.com/filipchalupa/flexing-container

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Flexing container [![npm](https://img.shields.io/npm/v/flexing-container.svg)](https://www.npmjs.com/package/flexing-container) ![npm type definitions](https://img.shields.io/npm/types/flexing-container.svg)

## Installation

```bash
npm install flexing-container
```

## How to use

You can get inspired by [Example here](src/stories/Example.tsx) and [Storybook demo here](https://flexing-container.netlify.app/).

```jsx
import { FlexingContainer } from 'flexing-container'

const MyComponent = () => {
// …

return (

{children}
}
>
{items[activeItemIndex]}

)
}
```

Don't forget to import styles from `flexing-container/dist/index.css`.

## Development

Run `npm start` and `npm run storybook` parallelly.