@justeat/f-error-message

2.5.0 • Public • Published

f-error-message

Fozzie Bear

Generic inline error message


npm version CircleCI Coverage Status Known Vulnerabilities

Usage

Installation

This package can be installed using npm or yarn:

You can import it in your Vue SFC like this (please note that styles have to be imported separately):

import ErrorMessage from '@justeat/f-error-message';
import '@justeat/f-error-message/dist/f-error-message.css';

export default {
    components: {
        ErrorMessage
    }
}

If you are using Webpack, you can import the component dynamically to separate the error-message bundle from the main bundle.client.js:

import '@justeat/f-error-message/dist/f-error-message.css';

export default {
    components: {
        ...
        ErrorMessage: () => import(/* webpackChunkName: "error-message" */ '@justeat/f-error-message')
    }
}

Configuration

Props

f-error-message does not expose any props.

<error-message>Default error message</error-message>

Development

Start by cloning the repository and installing the required dependencies:

$ git clone git@github.com:justeat/fozzie-components.git
$ cd fozzie-components
$ yarn

Change directory to the f-error-message package:

$ cd packages/components/atoms/f-error-message

Running storybook

Storybook can be used to develop new and existing components.

To start storybook:

Please ensure you are in the f-error-message directory as outlined in the above instructions.

# cd to the storybook package
$ cd ../../../storybook

# Run storybook
$ yarn storybook:serve

This will build and serve storybook at http://localhost:8080.

Readme

Keywords

Package Sidebar

Install

npm i @justeat/f-error-message

Weekly Downloads

2

Version

2.5.0

License

Apache-2.0

Unpacked Size

9.11 MB

Total Files

12

Last publish

Collaborators

  • ilia.chikmarev
  • fidel.montesino
  • anastasiia.horban
  • raouf.sawehli
  • mmakwe-onyeka
  • gregory.palaci
  • arielfdr
  • dawidchar
  • roberto.santana
  • lizzie.turney
  • davidpn.11
  • dandel10n
  • mwh1989
  • kevinrodrigues
  • fozzie-bot
  • ashleynolan
  • simonsje
  • xander-marjoram
  • sergii.semenkiv
  • thomaswilliammcclean
  • benrwhite
  • robertellison
  • zlatin.ivanov
  • joshuang2332
  • oliversweb
  • andymayje
  • jamieomaguire
  • adammorr
  • lsphillips