# error-message-tal

> React component for showing error/success messages in your webpage

Latest version **1.0.4** (published 2022-06-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install error-message-tal
pnpm add error-message-tal
yarn add error-message-tal
bun add error-message-tal
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-06-07 |
| First published | 2022-05-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Soumyadip Pandit |
| Maintainers | soumyadip-62 |
| Keywords | react, components, error, success, country codes |

## Links

- npm: https://www.npmjs.com/package/error-message-tal
- Repository: https://github.com/Soumyadip-62/Error-Message
- Homepage: https://github.com/Soumyadip-62/Error-Message#readme
- Issues: https://github.com/Soumyadip-62/Error-Message/issues
- npm.io page: https://npm.io/package/error-message-tal

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-06-07
- 1.0.3 — 2022-06-01
- 1.0.2 — 2022-05-31
- 1.0.1 — 2022-05-31
- 1.0.0 — 2022-05-31

## README

# Error-Message

this package contains error message components and all country codes component

## `how to install?`

`npm`

> _npm i error-message-tal_

`yarn`

> _yarn add error-message-tal_

---
### `Few things to keep in mind while using it`

* The error message can be a `string` or an `array`, but the success prop should always be a `string`

* If you are using `className` then the `errorStyle/messageStyle` prop won't work.

---

## `how to use country code component? `

```
import {Country_Code} from 'error-message-tal'


function App() {
  return (
      <div>
        <label>Select Country code</label>
        <select
          name="Country code"
          className="select">
          <Country_Code />
        </select>
      </div>

  );
}
```
---
## `how to use the error-message component?`

```
import { ErrorMessage } from "error-message-tal";


function App() {
  const [success, setSuccess] = useState('yeah! its working');
  const [error, seterror] = useState('');
  return (

      <div>
        <ErrorMessage success={success} error={error}/>
      </div>

  );
}

```

---

## `props for error-message component`


**error,
  success,
  errorStyle,
  messageStyle,
  errorClass,
  messageClass,**

  
  <!-- autoRemoveAfter, -->


| props     | type      | default     | required
| ------------- | ------------- | -------- | -------- |
| success         | string         | string  | true
| error           | string/array         | array  | true
| errorStyle           | Style(obj)         |   | false
| messageStyle           | Style(obj)         |   | false
| errorClass           | className(string)         | null  | false
| messageClass           |    className(string)      | null  | false


<!-- # `see this example: `

```

<div>
        <ErrorMessage success={first} error='Yeaaahh its working' messageStyle={{color: "green"}} errorStyle={{color: "red"}} errorClass='errclass'  messageClass='msgclass' autoRemoveAfter={2000}/>
        
      </div>
``` -->

---
_Source: https://npm.io/package/error-message-tal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
