web_components 0.10.5+1 web_components: ^0.10.5+1 copied to clipboard
Polyfills for Shadow DOM, Custom Elements, and HTML Imports. Custom Elements let authors define their own elements. Authors associate code with custom tag names, and then use those custom tag names as [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add web_components
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
web_components: ^0.10.5+1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:web_components/web_components.dart';