Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Last active September 30, 2020 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosrojaso/51eed74585920e8f6e75dc4fcdc5a21e to your computer and use it in GitHub Desktop.
Save carlosrojaso/51eed74585920e8f6e75dc4fcdc5a21e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo - error-component</title>
</head>
<body>
<error-component>Default Message</error-component>
<error-component kind="warning">Warning Message</error-component>
<error-component kind="error">Error Message</error-component>
<script>
class ErrorComponent extends HTMLElement {
constructor() {
super();
}
}
customElements.define('error-component', ErrorComponent);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment