Notification

Notification

El componente Notification es un componente que muestra una notificacion.

Ejemplo

Importacion

Para importar el componente Notification, se puede hacer desde fenextjs o fenextjs-component

import {
  Notification,
  NotificationProps,
} from "fenextjs/cjs/component/Notification";

o

import {
  Notification,
  NotificationProps,
} from "fenextjs-component/cjs/Notification";

Parametros

ParametroTipoRequeridoDefaultDescripcion
childrenReactNodeNoContenido de la notificación.
typeRequestResultTypePropsNoTipo de notificación. Puede ser success, error, info o warning.
_tstringNoPropiedad de internacionalización.

Storybook

Para ver el storybook del componente lo puede hacer con este link (opens in a new tab)

Usos

  • Uso básico del componente Notification
<Notification />