flexing-container
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Flexing container npm npm type definitions

Installation

npm install flexing-container

How to use

You can get inspired by Example here and Storybook demo here.

import { FlexingContainer } from 'flexing-container'

const MyComponent = () => {
	// …

	return (
		<FlexingContainer
			wrap={({ children }) => <div className="box">{children}</div>}
		>
			{items[activeItemIndex]}
		</FlexingContainer>
	)
}

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

Development

Run npm start and npm run storybook parallelly.

Readme

Keywords

Package Sidebar

Install

npm i flexing-container

Weekly Downloads

71

Version

0.2.1

License

ISC

Unpacked Size

101 kB

Total Files

16

Last publish

Collaborators

  • onset