reio 0.1.3 copy "reio: ^0.1.3" to clipboard
reio: ^0.1.3 copied to clipboard

discontinued

Reio.dart is a progressive Dart library for creating UI on the web.

About #

Reio.dart is a progressive Dart library for creating UI on the web. Create your UI in minutes!

  • Zero dependence;
  • Flexible components;
  • Virtual DOM;
  • Reactivity;

Github

Pub

Example #

import 'components/app.reio.dart';

void main() {
  $App();
}

Reactive stores #

Stores are used to interact and store information. They are responsible for reactivity in components.

Watcher watcher = Watcher();

watcher.watch(() {
  print('Congratulations, you have ${store['clicks']?.get()} clicks!');
});

HTML #

div('value', [
        'id cool-element',
        'class first second etc'
      ], [
        div(),
        span(),
        $Component({})
      ], {
        'onMount': () => print('Yep!'),
        'onDestroy': () => print('Nope!')
      })

Styles #

The syntax is almost the same as standard CSS, but has the ability to use access modifiers.

  • public - It makes element styles global, which is an alternative to global.css. Use the public modifier if this is the only way and if the element styles refer to a component, otherwise use global.css.
  • private - Restricts access to element styles to everyone except the component itself. Does not require an element to be specified after the modifier.
  • Restricts access to element styles other than the component itself and its children.

Example:

{public}: body {
  color: black;
}

{private}: {
  color: white;
}

{protected}: div {
  color: blue;
}
5
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Reio.dart is a progressive Dart library for creating UI on the web.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on reio