1.0.12 • Published 2 years ago

instatus-embed v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

instatus-embed

Web component to show/embed page status, using instatus api and swr

NPM JavaScript Style Guide

Install

npm install --save instatus-embed

Usage

import React, { Component } from 'react'

import { InstatusUptime } from 'instatus-embed'

class Example extends Component {
  render() {
    return (
      <InstatusUptime
        InstatusUrl="https://YOUR_SUBDOMAIN.instatus.com/summary.json"
        FailedMessage="failed to load"
        LoadingMessage="loading..."
        UpMessage="All System Operational"
        UpColor="#00ff00"
        HasIssuesMessage="Have some issues"
        HasIssuesColor="#ff0000"
        UnderMaintenanceMessage="Schedule Maintenance"
        UnderMaintenanceColor="#0000ff"
      />
    )
  }
}

License

MIT © petrolins

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago