mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 03:48:37 +00:00
feat(web): ability to align icon at the top for notifs/text ui
This commit is contained in:
1 parent
0daaf7a175
commit
a50f7a2052
8 files changed
+28
-2
No files matched your search
@@ -22,6 +22,7 @@ interface NotifyProps {
|
||||
style?: Sx;
|
||||
icon?: IconName | [IconPrefix, IconName];
|
||||
iconColor?: string;
|
||||
alignIcon?: 'top' | 'center';
|
||||
}
|
||||
|
||||
export const notify = (data: NotifyProps): void => exports.ox_lib.notify(data);
|
||||
|
||||
@@ -6,7 +6,9 @@ interface OptionsProps {
|
||||
icon?: IconName | [IconPrefix, IconName];
|
||||
iconColor?: string;
|
||||
style?: CSSProperties;
|
||||
alignIcon?: 'top' | 'center';
|
||||
}
|
||||
|
||||
export const showTextUI = (text: string, options?: OptionsProps): void => exports.ox_lib.showTextUI(text, options);
|
||||
|
||||
export const hideTextUI = (): void => exports.ox_lib.hideTextUI();
|
||||
|
||||
Reference in new issue
Block a user