|
Download tabler-react/src/components/Notification/NotificationTray.examples.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Notification/NotificationTray.examples.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Notification/NotificationTray.examples.md
-
curl -L -o NotificationTray.examples.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Notification/NotificationTray.examples.md
1.55 kB
| ```jsx | |
| <NotificationTray | |
| notificationsObjects={[ | |
| { | |
| avatarURL: "demo/faces/male/41.jpg", | |
| message: ( | |
| <React.Fragment> | |
| <strong>Nathan</strong> pushed new commit: Fix page load performance | |
| issue. | |
| </React.Fragment> | |
| ), | |
| time: "10 minutes ago", | |
| }, | |
| { | |
| avatarURL: "demo/faces/female/1.jpg", | |
| message: ( | |
| <React.Fragment> | |
| <strong>Alice</strong> started new task: Tabler UI design. | |
| </React.Fragment> | |
| ), | |
| time: "1 hour ago", | |
| }, | |
| { | |
| avatarURL: "demo/faces/female/18.jpg", | |
| message: ( | |
| <React.Fragment> | |
| <strong>Rose</strong> deployed new version of NodeJS REST Api // V3 | |
| </React.Fragment> | |
| ), | |
| time: "2 hours ago", | |
| }, | |
| ]} | |
| /> | |
| ``` | |
| ```jsx | |
| <NotificationTray unread={true}> | |
| <Notification | |
| avatarURL="demo/faces/male/41.jpg" | |
| message={ | |
| <React.Fragment> | |
| <strong>Nathan</strong> pushed new commit: Fix page load performance | |
| issue. | |
| </React.Fragment> | |
| } | |
| time="10 minutes ago" | |
| /> | |
| <Notification | |
| avatarURL="demo/faces/female/1.jpg" | |
| message={ | |
| <React.Fragment> | |
| <strong>Alice</strong> started new task: Tabler UI design. | |
| </React.Fragment> | |
| } | |
| time="1 hour ago" | |
| /> | |
| <Notification | |
| avatarURL="demo/faces/female/18.jpg" | |
| message={ | |
| <React.Fragment> | |
| <strong>Rose</strong> deployed new version of NodeJS REST Api // V3 | |
| </React.Fragment> | |
| } | |
| time="2 hours ago" | |
| /> | |
| </NotificationTray> | |
| ``` | |