GithubHelp home page GithubHelp logo

isabella232 / oui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from innovand/lego

0.0 0.0 0.0 133.45 MB

Optimizely's Component Library

License: Other

JavaScript 54.48% CSS 21.47% Shell 0.10% HTML 0.35% TypeScript 8.65% SCSS 14.95%

oui's Introduction

OUI Component Library

A custom CSS framework and React component library that powers the Optimizely user interface.

Build Status codecov npm version

🔗 Links

📦 Install

git clone https://github.com/optimizely/oui.git
yarn install
yarn storybook

ʦ TypeScript

Typescript types are generated for src/components from their JS files to aid consumption of this repo in Typescript. The optimizely-oui declaration file (types/templates/module-declaration.d.ts) exports all named component exports. To build the exported declaration file (types/index.d.ts), the autogenerated individual component module declarations are merged with the main declaration file (see yarn generate-types).

PropTypes

PropTypes can still be used for non-Typescript (.js) components as well as when more complex validation is needed. The (babel-plugin-typescript-to-proptypes)[https://www.npmjs.com/package/babel-plugin-typescript-to-proptypes] plugin is used to ensure that all components (typed or not) are exported with PropTypes.

💪 Contribute

Read how to contribute to OUI for instructions on making pull requests.

🚢 Release

Check out the Release a New Version section for instructions on releasing a new version of OUI

⚡️ React

To use an OUI component inside your React app:

import React from 'react';
import { Button } from 'optimizely-oui';
...
return ( <Button size="tiny">Click Me</Button> );

🧪 Testing

Thanks to Chromatic, OUI runs visual regression tests on every pull request and merge. These tests are snapshots of each Storybook story within the repository. For implementation details, see the Chromatic section of the contributing guidelines

💅 Sass

To use OUI Sass variables and mixins in your project read how to use OUI sass.

oui's People

Contributors

acacia-m-pappas-zz avatar alansun-optimizely avatar ayeshakmaz avatar bhamodi avatar danoc avatar davemn avatar daverau-optimizely avatar dependabot[bot] avatar elepert avatar gloriakim-optimizely avatar hassan-khalid-folio3 avatar ianh-optimizely avatar inakiaranzadi-optimizely avatar jeffreychan-optimizely avatar jessicalc avatar jordangarcia avatar kwalker3690 avatar mjc1283 avatar mrasikh avatar nathanjessen avatar oakbani avatar pauloptimizely avatar quarklemotion avatar ryn-optimizely avatar spham1412 avatar tscanlin avatar xacaciax avatar yavorona avatar zachpwr avatar zashraf1985 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.