🧩 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 metadata
  • Story β€” interactive use-case definitions
  • Params β€” runtime param interfaces
  • DocumentEntry β€” documentation support (e.g. MDX)
  • Decorator β€” widget wrappers for layout and context
  • Config β€” 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