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
Parametro | Tipo | Requerido | Default | Descripcion |
---|---|---|---|---|
children | ReactNode | No | Contenido de la notificación. | |
type | RequestResultTypeProps | No | Tipo de notificación. Puede ser success , error , info o warning . | |
_t | string | No | Propiedad 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 />