Skip to content

Commit

Permalink
chore(example): add SSR example
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Oct 31, 2023
1 parent 9f0815f commit 0384c7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IconContext } from "../dist";
import type { IconWeight, Icon } from "../dist";
import { icons } from "../core/src/icons";
import { CustomIcon } from "./CustomIcon";
import { At } from "../dist/ssr";
import "./index.css";

const pascalNames = new Set(icons.map((entry) => entry.pascal_name));
Expand Down Expand Up @@ -71,6 +72,11 @@ const App = () => {
<div>
<CustomIcon size={32} weight="fill" color="darkorange" />
</div>
<div>
<At />
<At color="crimson" size={48} />
<At color="teal" size={48} weight="fill" />
</div>
<Icons.Cube
style={{ cursor: "pointer" }}
color="darkorange"
Expand Down

0 comments on commit 0384c7f

Please sign in to comment.