react-clearfix
v1.0.0
Published
A React component for clearfix
Downloads
58
Readme
READMDE
A clearfix component for React projects.
Usage
import Clearfix from 'react-clearfix';
class YourComponent extends React.Component {
render() {
<div>
{/* Insert floated element(s) here */}
<Clearfix/>
</div>
}
}
Elements placed below <Clearfix/>
will flow beneath the floated elements.
Notes
This package comes with a Typescript definition file.
License
MIT (See License)