4.0.2 • Published 3 years ago

hear-ye v4.0.2

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

Hear-ye

Hear-ye is an opinionated component workbench for React. It helps developing components in isolation and picking the right component for the right need.

Installation

Use the package manager npm to install hear-ye.

npm install hear-ye

Requirements

Your project needs to: 1. be built with webpack 1. be written in TypeScript 1. follow a specific file structure (see File structure paragraph)

Usage

Assuming your component library is called awesome-components:

Example demo file

// src/button/button.tsx
import * as React from 'react';

// styling is optional
import './button.scss';

interface ButtonProps {
  onClick?: (event: React.MouseEvent<HTMMButtonElement>) => void;
}

export function Button(props: ButtonProps) {
  return <button {...props}/>;
}
// src/button/button.demo.tsx
import { Button } from 'awesome-components';
import { Gallery, Sink } from 'hear-ye';
import * as React from 'react';

function ButtonDemo() {
  return <Sink>
    <Button onClick={e => console.log(e)}/>
  </Sink>;
}

Gallery.add({
  path: ['Button', 'Basic demo'],
  component: <ButtonDemo/>
});
hear-ye

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

4.0.1

3 years ago

4.0.2

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago