-
-
Notifications
You must be signed in to change notification settings - Fork 505
Expand file tree
/
Copy pathcard.root.tsx
More file actions
43 lines (39 loc) · 1.19 KB
/
card.root.tsx
File metadata and controls
43 lines (39 loc) · 1.19 KB
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
40
41
42
43
import { Card } from "flowbite-react";
import type { CodeData } from "~/components/code-demo";
const code = `
import { Card } from "flowbite-react";
export function Component() {
return (
<Card href="#" className="max-w-sm">
<h5 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
Noteworthy technology acquisitions 2021
</h5>
<p className="font-normal text-gray-700 dark:text-gray-400">
Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.
</p>
</Card>
);
}
`;
export function Component() {
return (
<Card href="#" className="max-w-sm">
<h5 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
Noteworthy technology acquisitions 2021
</h5>
<p className="font-normal text-gray-700 dark:text-gray-400">
Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.
</p>
</Card>
);
}
export const root: CodeData = {
type: "single",
code: {
fileName: "index",
language: "tsx",
code,
},
githubSlug: "card/card.root.tsx",
component: <Component />,
};