openui_components 0.0.1-dev.2 copy "openui_components: ^0.0.1-dev.2" to clipboard
openui_components: ^0.0.1-dev.2 copied to clipboard

Builtin component library for OpenUI Flutter: Stack, Card, Form, Tabs, Table, Markdown, Image, BarChart, LineChart, and friends.

openui_components #

Pub License: MIT style: very_good_analysis

Builtin component library for OpenUI Flutter.

Ships 21 components ready to drop into the openui renderer:

  • LayoutStack, Card, CardHeader, Separator, Callout
  • ContentTextContent, MarkDownRenderer, Image, CodeBlock
  • FormsForm, FormControl, Input, Select, Button, Buttons
  • DataTable, Col, Tabs, TabItem
  • ChartsBarChart, LineChart

Each component is wired to the renderer's reactive store and FormStateCache. Reactive inputs (Input.value, Select.value) are two-way bound to $state variables through the renderer's ReactiveAssign marker.

Status #

v0.1, Phase 3 complete.

Install #

dependencies:
  openui_components: ^0.1.0

Quick start #

import 'package:flutter/material.dart';
import 'package:openui/openui.dart';
import 'package:openui_components/openui_components.dart';

void main() => runApp(const MaterialApp(home: MyPage()));

class MyPage extends StatelessWidget {
  const MyPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Renderer(
        response: r'''
$count = 0
root = Stack(children: [
  TextContent(text: "Hello!", size: "large-heavy"),
  Button(label: "Bump", onClick: [@Set($count, $count + 1)]),
  TextContent(text: $count)
])
''',
        library: openuiLibrary(),
      ),
    );
  }
}

Two libraries #

Factory Behavior
openuiLibrary() All 21 components, no root wrapper.
openuiChatLibrary() Same component set — drop-in for chat surfaces.

License #

MIT — see LICENSE.

0
likes
150
points
83
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Builtin component library for OpenUI Flutter: Stack, Card, Form, Tabs, Table, Markdown, Image, BarChart, LineChart, and friends.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

fl_chart, flutter, flutter_markdown_plus, meta, openui, openui_core, url_launcher

More

Packages that depend on openui_components