Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-foundation
Advanced tools
Readme
Foundation as React components.
https://digia.online/react-foundation-docs/
Foundation is both feature-rich and easy to customize. React on the other hand is awesome because of its simplicity. It's even more awesome when combined with Redux and Immutable.
After building quite a few applications with React and Foundation we noticed that we were writing the same components over and over again. First we tried to find a library that would do the job, but there was none that met our needs. So we collected our notes, started coding and here's the result.
We hope you enjoy it as much as we do!
The goal is to wrap every part of Foundation into re-usable React components following the framework's
best practices. The primary focus is ease-of-use and extensibility. We use pure render components,
also known as stateless components, whenever possible to keep the memory usage to a minimum. Stateful
components are only used for larger components, such as ResponsiveNavigation
, where state is actually necessary.
All components are unit-tested to ensure their quality.
Here is a list of the available components:
More components coming soon!
Install library:
npm install react-foundation --save
Install foundation-sites:
npm install foundation-sites --save
// Add Foundation to index.js
import 'foundation-sites/dist/css/foundation.min.css';
// import components
import { Button, Colors } from 'react-foundation';
// Use components ...
function SubmitButton() {
return <Button color={Colors.SUCCESS}>Submit</Button>;
}
Documentation is at https://digia.online/react-foundation-docs/.
Note: Newer versions of foundation-sites
do not offer out of the box support for <Row/>
and <Column/>
components. If working with a newer version, <Grid/>
and <Cell/>
components should be used instead.
// Previous versions
<Row className="display">
<Column small={2} large={4}>4 columns</Column>
<Column small={4} large={4}>4 columns</Column>
<Column small={6} large={4}>4 columns</Column>
</Row>
// Newer versions
<Grid className="display">
<Cell small={2} large={4}>4 columns</Cell>
<Cell small={4} large={4}>4 columns</Cell>
<Cell small={6} large={4}>4 columns</Cell>
</Grid>
Please read our guidelines.
See LICENSE.
FAQs
Foundation as React components.
The npm package react-foundation receives a total of 784 weekly downloads. As such, react-foundation popularity was classified as not popular.
We found that react-foundation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.