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.
prefix
and suffix
propsAll the base inputs (Form.Text
, Form.Select
, Form.Email
, Form.Number
etc...) sport the ability to display affixes.
Fill in their prefix
or suffix
prop and the deed is done.
Form.Textarea
and "on/off" inputs (Radio
, Checkbox
etc...) are not compatible with affixes.
Affixes are either prefix
or suffix
. They are one of the following types:
Both prefix
and affix
accept the same 3 kinds of objects.
Form.Datalist
and multiple selects also works with the same ruleset.
An input can mix multiple types of affixes indiscriminately.
Interactive affixes (button and select) have the states related to their type:
AffixSelect
and AffixButton
can
hover
stateactive
statedisabled
stateThey are not allowed the read-only
state since a read-only <select>
is actually a regular read-only
text input, and a read-only button makes no sense.
Use lower case on prefix and suffix except if it's an interactive element.
Here's an example using a select
type affix with React Hooks Form