Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@breakaway/react-core
Advanced tools
This library provides a set of common React components for use with the PatternFly reference implementation.
This package provides Core PatternFly components for the PatternFly 4.
This project currently supports Node Active LTS releases. Please stay current with Node Active LTS when developing patternfly-react.
For example, to develop with Node 8, use the following:
nvm install 8
nvm use 8
This project also requires a Yarn version of >=1.6.0. The latest version can be installed here.
yarn add @breakaway/react-core
or
npm install @breakaway/react-core --save
It's strongly advised to use the PatternFly Base CSS in your whole project, or some components may diverge in appearance:
import '@breakaway/react-core/dist/styles/base.css';
import React from 'react';
import { Button } from '@breakaway/react-core';
export default <Button variant="primary">Button</Button>;
All css related to each component is provided alongside it. There is no component level CSS to import.
This project uses Gatsby. For an overview of the project structure please refer to the Gatsby documentation - Building with Components.
A comprehensive list of components and detailed usage of each can be found on the PatternFly React Docs website You can also find how each component is meant to be used from a design perspective on the PatternFly 4 Core website.
Note: All commands below assume you are on the root directory in this repository.
Run to install all the dependencies
yarn && yarn bootstrap && yarn build && yarn build:docs
To start the site locally.
yarn build && yarn start:pf4
To build the site.
yarn build:docs
This library makes use of the babel plugin from @breakaway/react-styles to enable providing the CSS alongside the components. This removes the need for consumers to use (style|css|sass)-loaders. For an example of using CSS from core you can reference Button.js. For any CSS not provided by core please use the StyleSheet.create
utility from @breakaway/react-styles. This will prevent collisions with any consumers, and allow the CSS to be bundled with the component.
yarn build
Note the build scripts for this are located in the root package.json under yarn build
.
Testing is done at the root of this repo. To only run the patternfly-react tests:
yarn test packages/patternfly-4/react-core
FAQs
This library provides a set of common React components for use with the PatternFly reference implementation.
The npm package @breakaway/react-core receives a total of 55 weekly downloads. As such, @breakaway/react-core popularity was classified as not popular.
We found that @breakaway/react-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.