sandboxed_core 0.1.2
sandboxed_core: ^0.1.2 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 #
MIT License Β© 2025 Sandboxed, Vadim Melnikov