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:
This is a pre-release version and is not production ready. For new and ongoing projects, please refer to the latest Design System version.
A teaser card is a clickable preview that leads to detailed content, providing a convenient entry point for users to access more information. It contains maximum one interactive element (button) which links to the same location as the card.
next.design-system.post.ch/?path=/docs/68699b2c-ec1f-467d-81ae-8b3f48d7c595--docs&story=Default#68699b2c-ec1f-467d-81ae-8b3f48d7c595--default
/?path=/story/68699b2c-ec1f-467d-81ae-8b3f48d7c595--default&full=true
<post-linkarea> <div class="card teaser-card"> <img src="https://picsum.photos/id/38/500/400" alt="My placeholder image" /> <div> <div> <h3>Title</h3> <p>This is a sample description for the teaser card component.</p> </div> <a href="#" class="btn btn-tertiary px-0" >Button label <post-icon name="arrowright"></post-icon ></a> </div> </div> </post-linkarea>
The teaser card component will take the full width of its container and should be implemented within a grid system. Here is an example of what a teaser section would look like.
next.design-system.post.ch/?path=/docs/68699b2c-ec1f-467d-81ae-8b3f48d7c595--docs&story=Section#68699b2c-ec1f-467d-81ae-8b3f48d7c595--section
/?path=/story/68699b2c-ec1f-467d-81ae-8b3f48d7c595--section&full=true
This is a sample description for the teaser section component.
<div class="container py-56 d-flex flex-column gap-32"> <div class="d-flex align-items-end justify-content-between gap-24"> <div class="d-flex flex-column gap-8"> <h2 class="m-0">Teaser section</h2> <p class="m-0">This is a sample description for the teaser section component.</p> </div> <a href="#" class="flex-shrink-0 btn btn-primary" >Let's go <post-icon name="arrowright"></post-icon ></a> </div> <div class="row gy-16 gy-lg-24"> <div class="col-md-6 col-lg-3"> <post-linkarea> <div class="card teaser-card"> <img src="https://picsum.photos/id/38/500/400" alt="My placeholder image" /> <div> <div> <h3>Title</h3> <p>This is a sample description for the teaser card component.</p> </div> <a href="#" class="btn btn-tertiary px-0" >Button label <post-icon name="arrowright"></post-icon ></a> </div> </div> </post-linkarea> </div> <div class="col-md-6 col-lg-3"> <post-linkarea> <div class="card teaser-card"> <img src="https://picsum.photos/id/38/500/400" alt="My placeholder image" /> <div> <div> <h3>Title</h3> <p>This is a sample description for the teaser card component.</p> </div> <a href="#" class="btn btn-tertiary px-0" >Button label <post-icon name="arrowright"></post-icon ></a> </div> </div> </post-linkarea> </div> <div class="col-md-6 col-lg-3"> <post-linkarea> <div class="card teaser-card"> <img src="https://picsum.photos/id/38/500/400" alt="My placeholder image" /> <div> <div> <h3>Title</h3> <p>This is a sample description for the teaser card component.</p> </div> <a href="#" class="btn btn-tertiary px-0" >Button label <post-icon name="arrowright"></post-icon ></a> </div> </div> </post-linkarea> </div> <div class="col-md-6 col-lg-3"> <post-linkarea> <div class="card teaser-card"> <img src="https://picsum.photos/id/38/500/400" alt="My placeholder image" /> <div> <div> <h3>Title</h3> <p>This is a sample description for the teaser card component.</p> </div> <a href="#" class="btn btn-tertiary px-0" >Button label <post-icon name="arrowright"></post-icon ></a> </div> </div> </post-linkarea> </div> </div> </div>