Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Concrete contains the following input types:
Whilst each input accepts a v-model prop in the usual way, Concrete provides some additional global config parameters,
which affect the way each input operates, ultimately resulting in much less code being required.
These parameters are explained in detail below but in essence they allow you to use id of the input component to automatically:
Consider the following:
Maybe this doesn't look too bad, but imagine a form with twenty inputs. Considering that most of the time we want our inputs to be handled in a similar way, it's much more effective to configure the global options and simply use the following:
Specifies a function for globally handling changes in input values.
The handler is called with the id of the input and the updated value.
This feature allows you to standardise the behaviour of all inputs in your application
e.g. connecting them to store functionality
Specifies a function for retrieving a value based on the given id.
Registers form inputs in the internal registry if a boolean value of true is passed, or specifies a handler for rolling
your own input registration functionality.
Using the internal registry
When using the internal registry the property registeredInputs is provided on the concrete object to all components in the app instance. This property is reactive, allowing you to do all the usual Vue-y stuff with it. Inputs are deregistered when unmounted.
Using a custom handler
The internal registry and the registeredInput property is disabled if a custom handler is specified. The custom handler should return a deregister function in order to handle deregistering inputs when they are unmounted. If a function is not returned then a warning will appear in the console.
Specifies a function for setting the message and color of the input based on the input's id. This function should return either a string, which will infer a type: 'error', or an object in the following format: { message: string, type?: 'error' | 'warning' | 'info' }
entry.js
Component.vue
Now the input will turn red and display error text every time the cavity.width property with type: 'error' is set on the errorStore