Skip to content

Commit 3e93d4c

Browse files
authored
Merge pull request #8 from uswds/mh/add-usa-link
Add `usa-link` component
2 parents 661c322 + c3d4195 commit 3e93d4c

File tree

8 files changed

+2681
-0
lines changed

8 files changed

+2681
-0
lines changed

web-components/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

web-components/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>USWDS + Lit</title>
9+
<script type="module" src="/src/components/usa-link/index.js"></script>
10+
<style>
11+
:root {
12+
--theme-link-color: hotpink;
13+
}
14+
</style>
15+
</head>
16+
17+
<body>
18+
<p>
19+
<usa-link href="http://designsystem.digital.gov">
20+
It's dangerous to go alone. Here, take this.
21+
</usa-link>
22+
</p>
23+
24+
<p>
25+
<usa-link>
26+
<a href="https://designsystem.digital.gov">It's dangerous to go alone. Here, take this.</a>
27+
</usa-link>
28+
</p>
29+
</body>
30+
31+
</html>

0 commit comments

Comments
 (0)