Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
MagicForm will help you manage your applications with microfrontend architecture, through the concept of isolated providers, for example:
Any action not registered by the provider will continue to bubble until the next provider.
Improves the form development experience thanks to the use of webcomponents to centralize submission
A powerful form submission manager created with Atomicojs webcomponents, with MagicForm you can:
Simplify the sending of forms by centralizing the sending actions through a provider.
Know at all times the forms that are being provided and show their status.
Isolate a group of actions according to provider, this means that if a provider does not register the action it will bubble to the parent provider.
magic-form-provider
captures all the forms nested in magic-form
when executing the submit event by the form and distributes them according to the definition of the action attribute to each method of the actions object
Accelerates the implementation of design tokens in web components in a sustainable and scalable way
With @atomico/design-tokens
you can:
Design systems are complex to develop, due to the number of configurations that are shared between all our components, with @atomico/design-tokens
we will solve:
Naming problems of the custom properties of your design tokens.
Legibility of your CSS.
For this example we will use Atomico, by the way you can use @atomico/design-tokens
with any library.
The result of the CSS will be the following:
This is a technique that I have created to improve the scalability of design tokens, with it you can:
edit token globally using custom properties:
This is also applicable within a selector.
Simplify maintenance, since your components will use the custom properties without a prefix:
I am personally a fan of custom properties, but their use would become repetitive, to avoid this and improve maintenance @atomico/design-tokens introduces classes
, a generator of utility classes based on the proposed design tokens, example:
The classes
middleware will parse the CSSStyleSheet to relate the custom propeprtiy --size
as a class of .gap
, internally the css
will be as follows:
This makes it really simple to reuse the tokens, example:
MagicForm makes it easy to send data to the server, here are some useful patterns
Type | Description | Config |
---|---|---|
Property | Description |
---|---|
"ChangeState"
Dispatched when status changes from provider
{bubbles: false, composed: false}
state
Read only, Current status submission of the form
Object
action
Defines the action to dispatch, if not defined it can be inherited from the
tag
String
"ChangeForms"
Dispatched when forms changes from provider
{bubbles: false, composed: false}
forms
Read only, current state of the captured forms
actions
object that defines the actions to be captured by the MagicFormProvider