sandboxed_core 0.1.5
sandboxed_core: ^0.1.5 copied to clipboard
Core logic and utilities powering the Sandboxed UI development environment. Includes base classes and internal APIs.
π§© Sandboxed Core #
Core primitives for Sandboxed β
a Flutter tool for developing, testing, and documenting UI components in isolation.
This package contains the core types used to define and organize components and stories, including:
Metaβ component metadataStoryβ interactive use-case definitionsParamsβ runtime param interfacesDocumentEntryβ documentation support (e.g. MDX)Decoratorβ widget wrappers for layout and contextConfigβ global configuration for storybooks
π¦ Installation #
Add to your pubspec.yaml:
dependencies:
sandboxed_core:
π§± Example #
import 'package:sandboxed_core/sandboxed_core.dart';
Meta get meta => Meta<MyButton>(
name: 'My Button',
module: 'UI / Buttons',
parameters: {
'golden': true,
},
decorators: [
Decorator((context, child) => Padding(
padding: const EdgeInsets.all(16),
child: child,
)),
],
);
Story get $Primary => Story(
name: 'Primary',
builder: (context, params) => MyButton(
title: params.string('title').required('Click Me'),
color: params.color('color').required(Colors.blue),
),
);
License #
This project is licensed under the Elastic License 2.0 - see the LICENSE file for details.