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.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
import "@inera/ids-core/components/date-label/register";
<ids-date-label>
requires either a stringified date object or a manually supplied month, day and
year.
Name | Description | Default | Control |
---|---|---|---|
date label | |||
date | Sets the date. | "" | - |
monthlabel | Manually set the month label. This does not replace the month property but should rather be used together when applying date manually. | "" | |
year | Manually set year. Should be combined with month and day. | "" | |
month | Manually set month. Should be combined with year and day. | "" | |
day | Manually set day. Should be combined with month and year. | "" |
A stringified
Date object
can be supplied to the date
property: date="${new Date().toString()}"
It's also possible to select the month, day and year manually. Note that the properties are handled
as numbers. Supplying a prefixed 0 like day="08"
is therefore unnecessary. Although, a full year
should be supplied.
There's no support for languages in the component itself. However you may set the month text
to whichever text you want. Just use the monthlabel
.
Note that the
monthlabel
does NOT replacemonth
. Use them both to ensure screen reader compatibility (like the example below).
The monthlabel
does NOT replace month
. Use them both to ensure screen reader compatibility (like
the example below).