0.2.8 • Published 1 year ago

d2e-components v0.2.8

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

D2E Components

A down-to-earth React Typescript component library which focuses on delivering simple, accessible components for developers to use.

Setup

npm i d2e-components

Deployment

Run npm run build, move to the created dist folder, then run npm publish

Available components

Modal

A simple modal which handles keyboard controls by default (press Escape to close).

import { useModal, Modal } from "d2e-components";

function MyComponent() {
  const { isShowing, toggle } = useModal();

  return (
    <div className="App">
      <button onClick={toggle}>Afficher la modale</button>

      <Modal hide={toggle} isShowing={isShowing} label="sample">
        It works
      </Modal>
    </div>
  );
}
0.2.7

1 year ago

0.2.8

1 year ago

0.2.1

1 year ago

0.1.2

1 year ago

0.2.0

1 year ago

0.2.6

1 year ago

0.1.7

1 year ago

0.2.3

1 year ago

0.1.4

1 year ago

0.2.2

1 year ago

0.1.3

1 year ago

0.2.5

1 year ago

0.1.6

1 year ago

0.2.4

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago