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.

Footer with custom config

When you need to add your own footer links.
<swisspost-internet-header project="test" custom-config='{"de":{"footer":{"block":{"title":"Eigene Footer-Konfiguration (de)","links":[{"url":"https://fireship.io","text":"Fireship.io","target":"_blank"},{"url":"https://css-tricks.com","text":"CSS-Tricks","target":"_blank"},{"url":"https://web.dev","text":"web.dev","target":"_blank"},{"url":"https://developer.mozilla.org","text":"MDN Web Docs","target":"_blank"},{"url":"https://getbootstrap.com","text":"Bootstrap","target":"_blank"},{"url":"https://google.com","text":"Google","target":"_blank"},{"url":"https://microsoft.com","text":"Microsoft","target":"_blank"}]}}},"fr":{"footer":{"block":{"title":"Eigene Footer-Konfiguration (fr)","links":[{"url":"https://fireship.io","text":"Fireship.io","target":"_blank"},{"url":"https://css-tricks.com","text":"CSS-Tricks","target":"_blank"},{"url":"https://web.dev","text":"web.dev","target":"_blank"},{"url":"https://developer.mozilla.org","text":"MDN Web Docs","target":"_blank"},{"url":"https://getbootstrap.com","text":"Bootstrap","target":"_blank"},{"url":"https://google.com","text":"Google","target":"_blank"},{"url":"https://microsoft.com","text":"Microsoft","target":"_blank"}]}}},"it":{"footer":{"block":{"title":"Eigene Footer-Konfiguration (it)","links":[{"url":"https://fireship.io","text":"Fireship.io","target":"_blank"},{"url":"https://css-tricks.com","text":"CSS-Tricks","target":"_blank"},{"url":"https://web.dev","text":"web.dev","target":"_blank"},{"url":"https://developer.mozilla.org","text":"MDN Web Docs","target":"_blank"},{"url":"https://getbootstrap.com","text":"Bootstrap","target":"_blank"},{"url":"https://google.com","text":"Google","target":"_blank"},{"url":"https://microsoft.com","text":"Microsoft","target":"_blank"}]}}},"en":{"footer":{"block":{"title":"Eigene Footer-Konfiguration (en)","links":[{"url":"https://fireship.io","text":"Fireship.io","target":"_blank"},{"url":"https://css-tricks.com","text":"CSS-Tricks","target":"_blank"},{"url":"https://web.dev","text":"web.dev","target":"_blank"},{"url":"https://developer.mozilla.org","text":"MDN Web Docs","target":"_blank"},{"url":"https://getbootstrap.com","text":"Bootstrap","target":"_blank"},{"url":"https://google.com","text":"Google","target":"_blank"},{"url":"https://microsoft.com","text":"Microsoft","target":"_blank"}]}}}}' ></swisspost-internet-header> <swisspost-internet-footer></swisspost-internet-footer>
NameDescriptionDefaultControl
Deprecated props
customConfig
Deprecated: use the new API to specify footer links in all four columns. This option will be removed in the next major release.
ICustomConfig
-
customConfig : {
    de : {...} 1 key
    fr : {...} 1 key
    it : {...} 1 key
    en : {...} 1 key
}