mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
* feat(notify): add option to show duration lib.notify new option `showDuration?: boolean -- Option to show duration bar` * fix(notify): allow icon color using hexadecimal values * chore(notify): show duration to default and added tinycolor2 for supporting available color formats * feat(notify): define interface for showDuration
20 lines
539 B
TypeScript
20 lines
539 B
TypeScript
import { ToastPosition } from 'react-hot-toast';
|
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
import { Sx } from '@mantine/core';
|
|
import { IconAnimation } from '../components/LibIcon';
|
|
|
|
export interface NotificationProps {
|
|
style?: Sx;
|
|
description?: string;
|
|
title?: string;
|
|
duration?: number;
|
|
showDuration?: boolean;
|
|
icon?: IconProp;
|
|
iconColor?: string;
|
|
iconAnimation?: IconAnimation;
|
|
position?: ToastPosition | 'top' | 'bottom';
|
|
id?: number | string;
|
|
type?: string;
|
|
alignIcon?: 'top' | 'center';
|
|
}
|