0.1.1 • Published 8 months ago
@lovebowls/customelements v0.1.1
@lovebowls/customElements
A collection of custom web elements for LoveBowls applications.
Installation
npm install @lovebowls/customElementsUsage
import { LinkElement } from '@lovebowls/customElements';
// The element will be automatically registered as 'subscribe-button'
// Use it in your HTML:
<subscribe-button url="https://example.com"></subscribe-button>Development
# Install dependencies
npm install
# Run tests
npm test
# Build the project
npm run build
# Development mode with watch
npm run devAvailable Elements
Subscribe Button
A customizable subscription button element that can be used across LoveBowls applications.
<subscribe-button url="https://example.com"></subscribe-button>Attributes:
url: The URL to navigate to when clicked (defaults to 'https://lovebowls.co.uk/')
License
MIT
0.1.1
8 months ago