Skip to content

Commit

Permalink
docs(components): update documentation (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
owilliams320 authored Nov 7, 2023
1 parent 9b51f8a commit 9b5146f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ All components are published in npm and available on any CDN that host npm modul

```html
<!-- using a specific version -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@x.x.x/index.mjs"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@x.x.x/+esm"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@x.x.x/style.css" />

<!-- using the latest version -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.mjs"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/+esm"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/style.css" />
```

Expand All @@ -33,11 +33,11 @@ once the script is loaded, its now possible to start using our custom HTML eleme
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.mjs"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@x.x.x/+esm"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/style.css" />
</head>
<body>
<cv-button raised>Hello world<cv-button>
<cv-button label="Hello world" raised></cv-button>
</body>
</html>
```
Expand Down Expand Up @@ -69,7 +69,7 @@ import '@covalent/components/button';
@component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
template: '<cv-button>Hello world</cv-button>',
template: '<cv-button label="Hello world" raised></cv-button>',
})
export class AppComponent {}
```
Expand Down

0 comments on commit 9b5146f

Please sign in to comment.