deepyr 0.0.1 copy "deepyr: ^0.0.1" to clipboard
deepyr: ^0.0.1 copied to clipboard

A type-safe Dart implementation of DaisyUI components for Jaspr, providing a fluent API for building beautiful web apps (PoC)

example/lib/main.dart

import 'package:deepyr/deepyr.dart';
import 'package:jaspr/server.dart';

// Generated by Jaspr
import 'jaspr_options.dart';

void main() {
  Jaspr.initializeApp(
    options: defaultJasprOptions,
  );

  runApp(Document(
    title: 'Deepyr Example',
    head: <Component>[link(href: 'styles.css', rel: 'stylesheet')],
    body: const Example(),
  ));
}

class Example extends StatelessComponent {
  const Example({super.key});

  @override
  Iterable<Component> build(BuildContext context) sync* {
    yield div([
      Button([text('Neutral')], style: [Button.neutral]),
      Button([text('Primary')], style: [Button.primary]),
      Button([text('Secondary')], style: [Button.secondary]),
      Button([text('Accent')], style: [Button.accent]),
      Button([text('Info')], style: [Button.info]),
      Button([text('Success')], style: [Button.success]),
      Button([text('Warning')], style: [Button.warning]),
      Button([text('Error')], style: [Button.error]),
    ]);
  }
}
7
likes
0
points
358
downloads

Publisher

verified publisherphilippgerber.li

Weekly Downloads

A type-safe Dart implementation of DaisyUI components for Jaspr, providing a fluent API for building beautiful web apps (PoC)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

jaspr, universal_web

More

Packages that depend on deepyr