-
-
Notifications
You must be signed in to change notification settings - Fork 505
Expand file tree
/
Copy pathalert.withIcon.tsx
More file actions
39 lines (33 loc) · 932 Bytes
/
alert.withIcon.tsx
File metadata and controls
39 lines (33 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use client";
import { Alert } from "flowbite-react";
import { HiInformationCircle } from "react-icons/hi";
import type { CodeData } from "~/components/code-demo";
const code = `
"use client";
import { Alert } from "flowbite-react";
import { HiInformationCircle } from "react-icons/hi";
export function Component() {
return (
<Alert color="failure" icon={HiInformationCircle}>
<span className="font-medium">Info alert!</span> Change a few things up and try submitting again.
</Alert>
);
}
`;
export function Component() {
return (
<Alert color="failure" icon={HiInformationCircle}>
<span className="font-medium">Info alert!</span> Change a few things up and try submitting again.
</Alert>
);
}
export const withIcon: CodeData = {
type: "single",
code: {
fileName: "index",
language: "tsx",
code,
},
githubSlug: "alert/alert.withIcon.tsx",
component: <Component />,
};