
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@engie-group/fluid-design-system-react
Advanced tools
Install the package inside your application:
npm install @engie-group/fluid-design-system-react
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Lato:300,400,700,900&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@engie-group/fluid-design-system@4.4.0/lib/fluid-design-system.css">
import '@engie-group/fluid-design-system/lib/fluid-design-system.css'; //CSS optional if loaded via link tag
import {Button} from '@engie-group/fluid-design-system-react/lib/fluid-design-system-react.js';// JS library
function App() {
return (
<div>
<Button label="Mon label" />
</div>
);
}
ReactDOM.render(
<App />,
document.getElementById('root')
);
import '@engie-group/fluid-design-system/lib/components/button/index.css'; //CSS import optional if loaded via link tag
import {Button} from "@engie-group/fluid-design-system-react/lib/components/button/Button";
You can use typescript react sources as well with css modules:
import '@engie-group/fluid-design-system/src/components/button/_index.scss'; //SASS import optional or CSS
import {Button} from "@engie-group/fluid-design-system-react/src/components/button/Button";
replace publicPath/fluid-react/lib/components/ by your own public Path
...
<body>
<div id="root">
</div>
<script src="https://unpkg.com/react@16.13.1/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16.13.1/umd/react-dom.development.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@engie-group/fluid-design-system@0.1.0-alpha.7/lib/components/button/Button.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@engie-group/fluid-design-system-react@0.1.0-alpha.7/lib/components/footer/Footer.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
ReactDOM.render(
React.createElement("div", null,
React.createElement(Button.Button, {label: "Label", variant: "success"}, "button"),
React.createElement(Footer.Footer, null, "footer")
)
,
document.getElementById('root')
);
});
</script>
</body>
</html>
Create a component folder inside src/components:
src/components -
/ componentName -
/ ComponentName.tsx
/ test -
/ComponentName.test.tsx
Update src/fluid-design-system-react.ts by adding component import/export
Update webpack.config.js with component build, be careful to match upper/lowercase:
{
...BASE_CONFIG,
...{
name: 'componentName',
entry: './src/components/componentName/ComponentName.tsx',
output: {
...BASE_CONFIG_OUTPUT,
...{
filename: './components/componentName/ComponentName.js',
library: 'ComponentName'
}
}
}
}
Create a component folder inside fluid-doc-react package:
src/stories/componentName/ComponentName.stories.js
Name | Chrome Mac 86 > | Firefox | Safari | IOS Safari | Chrome android |
---|---|---|---|---|---|
Alert | ✅ | ✅ | |||
Breadcrumb | ✅ | ✅ | |||
Button | ✅ | ✅ | |||
Card | ✅ | ||||
Checkbox | ✅ | ||||
Footer | ✅ | ||||
Icons | ✅ | ||||
Link | ✅ | ||||
Modal | ✅ | ✅ | |||
Pagination | ✅ | ✅ | |||
Progress | ✅ | ✅ | |||
Radio | ✅ | ✅ | |||
Slider | ✅ | ✅ | |||
Switch | ✅ | ✅ | |||
Tabs | ✅ | ✅ | |||
Tag | ✅ | ✅ | |||
Toggle | ✅ | ||||
Tooltip | ✅ |
Name | keyboard navigation | Aria attribute |
---|---|---|
Alert | ✅ | |
Button | ✅ | ✅ |
Breadcrumb | ✅ | |
Card | ✅ | |
Checkbox | ✅ | |
Footer | ✅ | |
Icons | ✅ | |
Link | ✅ | ✅ |
Modal | ✅ | ✅ |
Pagination | ✅ | ✅ |
Progress | ✅ | ✅ |
Radio | ✅ | ✅ |
Slider | ✅ | |
Switch | ✅ | ✅ |
Tabs | ✅ | ✅ |
Tag | ✅ | ✅ |
Toggle | ✅ | ✅ |
Tooltip | ✅ |
You can check our state of development on our Confluence page
FAQs
Fluid Design System React
The npm package @engie-group/fluid-design-system-react receives a total of 450 weekly downloads. As such, @engie-group/fluid-design-system-react popularity was classified as not popular.
We found that @engie-group/fluid-design-system-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.