5.4.4 • Published 5 years ago

@comparaonline/ui-offer-errors v5.4.4

Weekly downloads
57
License
MIT
Repository
-
Last release
5 years ago

@comparaonline/ui-offer-errors

A package for render view errors

Getting Started

To getting started with this package you will first install it, so

yarn add @comparaonline/ui-offer-errors

or

npm install @comparaonline/ui-offer-errors

Usage

Once you have installed the package, you can star using like

import React, { Component } from 'react';
import { Error404 } from '@comparaonline/ui-offer-errors';

interface ErrorViewProps extends RouteComponentProps<any> {}

class ErrorView extends Component<ErrorViewProps> {
  render() {
    return (
      <Error404
        buttonLabel={'Ir al inicio'}
        title={'Titulo'}
        subtitle={'Sub titulo'}
        description={'Mi descripción'}
        onClick={() => history.push('/form')}
      />
    );
  }
}

As you can see is so simple to use it

Props

the props that our component will use

Prop NameDescriptionDefault ValueExpected Type ValueRequired
buttonPropsan object containing the props needed for Button material ui{}ButtonPropsfalse
buttonLabelthe button title''stringfalse
titlethe title for the error view''stringfalse
subtitlethe subtitle for the error view''stringfalse
descriptionthe description for the error view''stringfalse
descriptionComponenta component that will replace the entire description sectionundefinedReactElementfalse
onClicka function to be invoked when hit the button into the error view() => undefinedFunctionfalse

Happy Coding :sunglasses:

5.4.4

5 years ago

5.4.3

5 years ago

4.9.1

5 years ago

4.9.0

5 years ago

4.8.6

5 years ago

4.8.5

5 years ago

4.8.4

5 years ago

4.8.2

5 years ago

4.7.4

5 years ago

4.7.1

5 years ago

4.7.0

5 years ago

4.3.6

5 years ago

4.0.5

5 years ago

4.0.0

5 years ago

3.6.2

5 years ago

3.6.1

5 years ago