Base level components, simple reusable things like tags, badges and more. Base level components offer the basics used throughout your application.
<cwc-base-tag>
Custom Web Component, a simple tag you can style.
--cwc-base-tag--background
Background as a colour, image etc.--cwc-base-tag--border-radius
Border radius as a single value or combination.--cwc-base-tag--color
Colour of text inside component.--cwc-base-tag--font-size
Font-size for text inside component.--cwc-base-tag--line-height
Line-height for text inside component.--cwc-base-tag--padding
Padding for inside of component.
<!-- direct import from html (you can import with ES6 import too in JS files! -->
<script type="module" src="/node_modules/custom-web-components/src/base/index.js"></script>
<style>
.example-xxx {
--cwc-base-tag--background: red;
--cwc-base-tag--color: white;
}
</style>
<cwc-base-tag class="example-xxx">Some Text</cwc-base-tag>