-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<head> | ||
<script defer src="dist/test.js"></script> | ||
<link rel="stylesheet" href="dist/test.css"> | ||
</head> | ||
<body style="padding: 2rem; background: #1f1f1f;"> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
import { render } from "react-dom"; | ||
import { IconButton, Icon, Button } from "../dist/index" | ||
|
||
import {config, library} from '@fortawesome/fontawesome-svg-core'; | ||
import {fas} from '@fortawesome/free-solid-svg-icons'; | ||
import {faNeos} from '@fortawesome/free-brands-svg-icons/faNeos'; | ||
import '@fortawesome/fontawesome-svg-core/styles.css'; | ||
|
||
config.autoAddCss = false; // Dont insert the supporting CSS into the <head> of the HTML document | ||
library.add( | ||
fas, | ||
faNeos, | ||
) | ||
|
||
const App = () => ( | ||
<div style={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
gap: "2rem", | ||
width: "100px" | ||
}}> | ||
<IconButton icon="neos" /> | ||
<Icon icon="swimming-pool" /> | ||
<Button>Hello Welt</Button> | ||
</div> | ||
) | ||
|
||
render(<App />, document.getElementById("app")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters