1.0.12-alpha • Published 2 years ago
@neutron-ui/fast-preview v1.0.12-alpha
FAST Preview
Web Component for previewing FAST-based web components
Uses the custom elements manifest JSON format.
<fast-preview
id="preview-element"
attributes-panel
></fast-preview>
import manifest from '...manifest.json';
import { FASTPreview } from '@tac-elements/fast-preview';
const preview = document.getElementById('preview-element')!;
preview.elementData = getCustomElement(manifest, 'Button');
Features
- Uses CustomElement definitions from a custom-elements-manifest file.
- Can use custom definitions based on the CustomElement schema for customizing the component preview that gets rendered.
- Can render a FAST Component, with controls to configure any attributes defined on the element.
Known Issues
This is an alpha with a lot of rough edges, so several issues are to be expected.
- Attribute TextFields that get cleared out throw an exception.
In Progress Features
- Panel to customize internal slots
- Panel to customize internal CSS Parts
- Panel to customize CSS Custom Properties
- Types for custom data format
- Automatic component & Design System registration
1.0.12-alpha
2 years ago
1.0.11-alpha
2 years ago
1.0.10-alpha
2 years ago
1.0.9-alpha
2 years ago
1.0.8-alpha
2 years ago
1.0.7-alpha
2 years ago
1.0.6-alpha
2 years ago
1.0.5-alpha
2 years ago
1.0.4-alpha
2 years ago
1.0.3-alpha
2 years ago
1.0.2-alpha
2 years ago
1.0.1-alpha
2 years ago