No Preview

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:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

Button

import "@inera/ids-core/components/button/register";

ids-wc-button will render a primary (default) button. When using multiple buttons, wrap with ids-wc-button-group.

NameDescriptionDefaultControl
Button
active
(use with toggle) will apply true to aria-pressed
false
block
Will make button use 100%
false
disabled
Will disable the button
false
fab
Applies a floating action button style
false
icon
Will create a round button
false
loading
Prevents click on the button
false
mblock
Will make button use 100% of width on <1024px screens
false
sblock
Will make button use 100% of width on <640px screens
false
secondary
Will apply the secondary style
false
size
Will set the size
sml
m
submit
Will apply a submit style to button. It will also align in height with inputs of type search.
Not supported by all themes
false
tertiary
Will apply the tertiary style
false
toggle
Will make button a toggle-button for screen readers with aria-pressed="active"
false
slots
Children to be rendered inside button
-

Primary

Secondary

Tertiary

Sizes


Icon button

Primary

Secondary

Tertiary

Loading

Block



Fab

Submit



Accessibility

No actions required.