wikipedia-react-components is a node package for developers who are building things for Wikipedia in React rather than oojs-ui.
It contains basic building blocks that you can use to build Wikipedia-like experiences.
A demo hosted by netlify is provided.
It strives to mimic the oojs ui style guide as well as the components the Wikipedia mobile site uses. If you see anything inconsistent or missing between these two, your patches are gratefully accepted!
- Components should be defined in the components/ folder.
- Each component contains a story.jsx that explains how it can be used. Please take care to document it, and run
npm run storybookto check it shows up as expected.
- Make sure the component is imported and exported in components/index.js
npm run lint:fix)
- Submit your patch!
@jdlrobson will release new versions on wikipedia-react-components when significant changes have been made and are needed.