Giter Site home page Giter Site logo

helixdesignsystem / helix-react Goto Github PK

View Code? Open in Web Editor NEW
5.0 8.0 6.0 1.38 MB

React components to wrap HelixUI Components.

Home Page: https://helix-react.netlify.app/

License: Apache License 2.0

JavaScript 99.62% HTML 0.38%
helix-ui-webcomponents react react-wrapper webcomponents-framework

helix-react's Introduction

forthebadge

Helix React

A React wrapper of the Helix UI Webcomponents Library

๐Ÿš€ Alpha release is here! Check out how to get started below! ๐ŸŒป


Table of Contents

The problem

You โค๏ธHelix UI webcomponents library and want to use it in your React application. You then realized React support for webcomponents is underwelming and requires you to write React compatibility wrappers for each web component that uses events.

This solution

Helix React exposes React wrappers of the Helix UI webcomponents for you. No need to write and maintain this yourself, this has you covered. As a bonus, you can also see the components in Storybook in order to play around yourself.

Installation

npm -i @helix-design-system/helix-react helix-ui prop-types

or

yarn add @helix-design-system/helix-react helix-ui prop-types

Prerequisites

Helix UI

Follow the Getting Started with HelixUI guide

Examples

Helix UI Webcomponent Snippet From Documentation

<hx-disclosure
  aria-controls="demo-modal"
  class="hxBtn"
>
  Open Modal
</hx-disclosure>
<hx-modal
  id="demo-modal"
>
  <header>
    ...
  </header>

  <hx-div>
    ...
  </hx-div>

  <footer>
    <button class="hxBtn hxPrimary">Confirm</button>
    <button class="hxBtn">Cancel</button>
  </footer>
</hx-modal>

Our Implementation

 import { Disclosure, Div, Modal } from '@helix-design-system/helix-react';
<Disclosure
  ariaControls="demo-modal"
  className="hxBtn"
>
  Open Modal
</Disclosure>

<Modal id="demo-modal">
  <header>
    ...
  </header>
  <Div>
    ...
  </Div>
  <footer>
    <Button variant="primary">Confirm</Button>
    <Button>Cancel</Button>
  </footer>
</Modal>

See Helix-React Storybook docs for more examples

Guiding Principles

We try to only expose basic wrappers of Helix UI webcomponents. Each wrapper corresponds with a component listed on the Helix UI documentation:

helix-ui-documentation

Issues

Looking to contribute? Look for the [Good First Issue][good-first-issue] label.

๐Ÿ› Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

๐Ÿ’ก Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a ๐Ÿ‘. This helps maintainers prioritize what to work on.

See Feature Requests

โ“ Questions

For questions related to using the library, please file an issue on GitHub.

๐Ÿ“š Setting up a Local Dev Environment

Storybook is an open source tool for developing UI components in isolation for React, Vue, and Angular. You can use this as a playground for all our components.

  1. Install Dependencies
yarn install	
  1. Run Storybook
npm start	

The script should automatically open Storybook in your browser, but you can always navigate to http://localhost:6006/?path=/story

  1. Play Around

Screen Shot 2020-05-15 at 2 32 35 PM

Contributors

Thanks goes to these people:


James Thompson

๐Ÿ’ป

Nicko Winner-Arroyo

๐Ÿ’ป

Mike Mangialardi

๐Ÿ’ป

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.