You can use the Web Component in your HTML template, JSX, Pug etc. Check the browsers support.
Put the following scripts tag in the head of your document:
<script
type="module"
crossorigin="anonymous"
src="https://cdn.jsdelivr.net/npm/@giotramu/logo"
></script>
Drop this line into your HTML document:
<giotramu-sign size="100px" color="accent"></giotramu-sign>
Et... Voilà:
Attribute | Type | Default | Description |
---|---|---|---|
color | ColorScheme | 'base-900' |
The color of the component. The default is the 'base-900' color, equal to the hexadecimal code #141414 . |
size | string |
'100%' |
The width of the component. You can use a length in px , rem , em , % unit.
|