jaspr_class_scope 0.1.0 copy "jaspr_class_scope: ^0.1.0" to clipboard
jaspr_class_scope: ^0.1.0 copied to clipboard

Locally scoped CSS class names for Jaspr components: a name written in one component cannot style another component's markup.

example/jaspr_class_scope_example.dart

// The example prints what the component would render.
// ignore_for_file: avoid_print

import 'hero.dart';

void main() {
  print(Hero.styles); // .grid-7en7oj > .title-7en7oj
  print(Hero.gridClasses); // grid-7en7oj
  print(copyButton.name); // js-copy
}
1
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherleancode.co

Weekly Downloads

Locally scoped CSS class names for Jaspr components: a name written in one component cannot style another component's markup.

Homepage
Repository (GitHub)
View/report issues

Topics

#css #jaspr #scoped-styles #styling #web

License

Apache-2.0 (license)

More

Packages that depend on jaspr_class_scope