From b87b3b6e925be9a51ad3464b2050145b54a87caf Mon Sep 17 00:00:00 2001
From: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
Date: Fri, 17 Feb 2023 13:11:49 +0100
Subject: [PATCH] update notification docs
---
docs/ox_lib/Interface/Client/notify.md | 80 ++++----------------------
1 file changed, 11 insertions(+), 69 deletions(-)
diff --git a/docs/ox_lib/Interface/Client/notify.md b/docs/ox_lib/Interface/Client/notify.md
index c8f7711c..b6ea5be8 100644
--- a/docs/ox_lib/Interface/Client/notify.md
+++ b/docs/ox_lib/Interface/Client/notify.md
@@ -5,7 +5,7 @@ title: Notifications
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-## lib.notify
+### lib.notify
Custom notifications with a lot of styling options.
@@ -33,9 +33,10 @@ lib.notify(data)
* title?: `string`
* Must provide if there is no description
* description?: `string`
- * Must provide if there is no title; has markdown support.
+ * Must provide if there is no title
+ * Markdown support
* duration?: `number`
-* position?: `'top'` or `'top-right'` or `'top-left'` or `'bottom'` or `'bottom-right'` or `'bottom-left'`
+* position?: `'top'` or `'top-right'` or `'top-left'` or `'bottom'` or `'bottom-right'` or `'bottom-left'` or `'center-right'` or `'center-left'`
* Default: `'top-right'`
* type?: `'inform'` or `'error'` or `'success'`
* Default: `'inform'`
@@ -45,6 +46,11 @@ lib.notify(data)
* Font Awesome 6 icon name
* iconColor: `string`
+:::caution
+
+Setting `iconColor` will get rid of the contrasted icon colour and it's circular background.
+:::
+
### Usage Example
#### Standard
@@ -76,7 +82,7 @@ lib.notify({
-
+
#### Custom
@@ -121,68 +127,4 @@ lib.notify({
-
-
-## lib.defaultNotify
-
-Default notifications provided by Chakra UI.
-
-
-
-
-```lua
-lib.defaultNotify(data)
-```
-
-
-
-
-```ts
-import lib from '@overextended/ox_lib/client'
-
-lib.defaultNotify(data)
-```
-
-
-
-
-* id?: `number`
- * Same as id in `lib.notify`
-* title?: `string`
-* description?: `string`
-* duration?: `number`
-* position?: `'top'` or `'top-right'` or `'top-left'` or `'bottom'` or `'bottom-right'` or `'bottom-left'`
-* variant?: `'solid'` or `'subtle'` or `'left-accent'` or `'top-accent'`
-* status?: `'info'` or `'warning'` or `'success'` or `'error'`
-
-### Usage Example
-
-
-
-
-```lua
-lib.defaultNotify({
- title = 'Notification title',
- description = 'Notification description',
- variant = 'left-accent',
- status = 'success'
-})
-```
-
-
-
-
-```ts
-import lib from '@overextended/ox_lib/client'
-
-lib.defaultNotify({
- title: 'Notification title',
- description: 'Notification description',
- status: 'success'
-})
-```
-
-
-
-
-
+