1.0.2 • Published 2 years ago

dl-weather-component v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Built With Stencil

Weather Report Component

This is a standalone weather report component that can be used on any platform when installed.

Getting Started

To start using this component:

npm install dl-weather-component

To use on an Vanilla JS application, add this to your html file:

  <dl-weather-app></dl-weather-app>

and also import the script file:

  <script type="module"
    src="./node_modules/dl-weather-component/dist/stencil-weather-component/stencil-weather-component.esm.js"></script>

To use on an Angular application:

Update the module you want to use the component:

  schemas: [CUSTOM_ELEMENTS_SCHEMA],

update the main.ts file:

import { defineCustomElements } from 'dl-weather-component/loader';

defineCustomElements(window);

then you can add this to the template of the compoent:

  <dl-weather-app></dl-weather-app>

To change the theme color from the default #3b013b, add this to your CSS:

html {--theme-color: your-theme-color}
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago