0.3.9 • Published 1 year ago

@fellesdatakatalog/alert v0.3.9

Weekly downloads
18
License
MIT
Repository
github
Last release
1 year ago

@fellesdatakatalog/alert

Alert component displays an alert message.

Installation

npm i @fellesdatakatalog/alert

Dependencies

  • react
  • styled-components
  • @material-ui/icons
  • @fellesdatakatalog/theme

Usage

Basic usage

In order to use the alert component, wrap the application in global theme provider from @fellesdatakatalog/theme. Then, use the alert as any regular component.

import React, { FC } from 'react';
import ThemeProvider from '@fellesdatakatalog/theme';
import Alert, { Severity } from '@fellesdatakatalog/alert';

const App: FC = () => (
  <ThemeProvider>
    <Alert severity={Severity.SUCCESS}>
      You succeeded!
    </Alert>
  </ThemeProvider>
);

export default App;
0.3.9

1 year ago

0.3.8

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.1.11

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago