0.1.12 • Published 10 months ago

@hermesgermany/last-mile-components v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Last Mile Components

This is a library of reusable React components for building web apps for the last-mile.

Installation

To install the library in your app, simply run:

# npm
npm install @hermesgermany/last-mile-components

# yarn
yarn add @hermesgermany/last-mile-components

Afterwards, import the components styles either in your CSS

@import "@hermesgermany/last-mile-components/dist/style.css";

or in the root of your application by omitting the @ in the import directive. You're good to go!

Usage

To use a component in your app, import it from the library:

import { BurgerMenu, Popover } from "@hermesgermany/last-mile-components"

function MyComponent() {
  return (
    <BurgerMenu>
      <Popover.MenuGroup groupLabel="Settings">
        <Popover.MenuItem
          label="User Settings"
          action={() => console.log("user settings")}
        />
        <Popover.MenuItem
          label="Dev Settings"
          action={() => console.log("dev settings")}
        />
      </Popover.MenuGroup>
    </BurgerMenu>
  )
}

Storybook documentation

You can see the latest version of our documentation here: LMC Docs

To view the components locally, you can launch Storybook by following these steps:

npm install
npm run dev

License

This library is licensed under the MIT licence. See 'LICENSE' for more information.

0.1.12

10 months ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.9

1 year ago

0.1.8

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago