0.2.0 • Published 7 years ago
fixed-box v0.2.0
FixedBox
Fixed box component for React | github.com/Eazymov/fixed-box
Installation
Direct <script /> include
The library will be exposed as a global FixedBox variable
<script src="https://cdn.jsdelivr.net/npm/fixed-box@latest"></script>or via unpkg
<script src="https://unpkg.com/fixed-box@latest"></script>NPM
npm install fixed-box --saveYarn
yarn add fixed-boxProps
className
FixedBox container element class name\
type: string \
required: none
edges
Minimal positions for the child element\ type:
{
top?: number,
right?: number,
bottom?: number,
left?: number,
}required: none
children
React node or function that returns react node and takes isFixed boolean value as argument\
type: React$Node | (isFixed: boolean) => React$Node \
required: none
Questions
If you have any troubles, questions or proposals you can create the issue
Good pull requests are also appreciated :)
License
Copyright (c) 2018 - present, Eduard Troshin