4.15.0 • Published 3 years ago

@habx/thunder-ui v4.15.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is it ?

Npm badge Npm badge Build badge

Thunder UI contains all the React components we use to build our backoffice at Habx. It provides a lot of ways to get your project started like theming.

Installation

ThunderUI is available on npm

# using npm
npm install @habx/thunder-ui

# using yarn
yarn add @habx/thunder-ui

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import { Card } from '@habx/thunder-ui'

const App = () => (
  <Card title='My first card'>
    Hello world
  </Card>
)

ReactDOM.render(<App />, document.querySelector('#app'));

Documentation and examples

Thunder form

  <Title underline>Form</Title>
  <Card title='Who are you ?' style={{ marginTop: 32 }}>
    <Container>
      <TextInput label='Your name' value='Bobby'/>
      <RadioSelect label='Your gender' options={[{ value: 1, label: 'Female' }, { value: 0, label: 'Male' }]} value={1} />
      <Slider label='Your age' value={23} onChange={() => null}/>
    </Container>
    <TextArea label='Your description' value='Lorem ipsum'/>
    <ButtonContainer>
      <Button>Validate</Button>
    </ButtonContainer>
  </Card>

Call a promise to confirm an action

   <Button
      onClick={async () => {
        const response = await confirm('Voulez-vous continuer');
        action('Confirm Modal response')(response);
      }}
    >
      Trigger event
    </Button>

Find what you want at the speed of light with spotlight ⚡

Pressing shift twice displays the spotlight. You can then search in your data and have a quick access to anywhere in your app 🚀

Look at the storybook to learn how to use and customize it !

Use a theme and customize thunder components as you like


Every single component is detailed in the Storybook.

TODO

  • Make the ArrayInput component responsive
  • Make the Notification component responsive
  • Provide some code examples
  • Provide a few default themes
4.15.0

3 years ago

4.14.1

4 years ago

4.14.0

4 years ago

4.13.0

5 years ago

4.12.0

5 years ago

4.11.3

5 years ago

4.11.2

5 years ago

4.11.1

5 years ago

4.11.0

5 years ago

4.10.0

5 years ago

4.9.5

5 years ago

4.9.4

5 years ago

4.9.3

5 years ago

4.9.2

5 years ago

4.9.1

5 years ago

4.9.0

5 years ago

4.8.3

5 years ago

4.8.2

5 years ago

4.8.1

5 years ago

4.8.0

5 years ago

4.7.0

5 years ago

4.6.3

5 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.0

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.10.1

5 years ago

3.10.0

5 years ago

3.9.4

5 years ago

3.9.3

5 years ago

3.9.2

5 years ago

3.9.1

5 years ago

3.9.0

5 years ago

3.8.3

5 years ago

3.8.2

5 years ago

3.8.1

5 years ago

3.8.0

5 years ago

3.6.4

5 years ago

3.6.3

5 years ago

3.6.2

5 years ago

3.6.1

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.6

5 years ago

3.4.5

5 years ago

3.4.4

5 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.8

5 years ago

3.3.7

5 years ago

3.3.6

5 years ago

3.3.5

5 years ago

3.3.4

5 years ago

3.3.3

5 years ago

3.3.2

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.4

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.38.1

5 years ago

2.38.0

5 years ago