react-paella-pinned
v2.0.1
Published
Pin or position children react component
Maintainers
Readme
Pinned
Explore on ✨Storybook✨
📌 📍
Install
yarn add react-paella-pinned
Use
By default <Pinned></Pinned> will center itself in both axis X/Y. You can customize further with props.
| Prop name | Accepts | Default | | :-------- | :-----: | ------: | | tag | string | span | | elevation | number | 9 | | isCenterX | bool | false | | isCenterY | bool | false | | offsetX | number | 0 | | offsetY | number | 0 |
Offsets only works on the opposite axis in the sense that offsetX will only apply to isCenterY and viceversa.
License
-pinned is part of the react-paella suite of components.
