zooid-error-state
ErrorState
Last updated 4 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zooid-error-state 
SYNC missed versions from official npm registry.

zooid-error-state

Build Status npm version Code Climate Slack Status

Install

npm install --save zooid-error-state

Props

Prop Type Default Description
buttonText string Text to display in the primary action (optional)
className string Additional css classes to merge into the component
description string Text explaining the cause of the error
href string URL for the primary action to link to
onClick func Called when the primary action is clicked (optional)
title string Title of the error

Note

For the button to render, a truthy buttonText value and either an onClick or href value must be specified.

Example

import ErrorState from 'zooid-error-state'

export default class App extends Component {
  render() {
    return (
      <ErrorState
        title="Sample Error"
        description="Something has gone terribly wrong"
        buttonText="Continue"
        onClick={action('onClick')} />
    )
  }
}

Current Tags

  • 1.3.0                                ...           latest (4 years ago)

5 Versions

  • 1.3.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 5
Dependencies (3)

Copyright 2014 - 2016 © taobao.org |