Skip to content
Snippets Groups Projects
heading.stories.ts 551 B
Newer Older
  • Learn to ignore specific revisions
  • import { type Meta, type StoryObj } from '@storybook/angular';
    
    const meta: Meta = {
      title: 'Typography/Heading',
    
    OZGCloud's avatar
    OZGCloud committed
      excludeStories: /.*Data$/,
      tags: ['autodocs'],
    
      parameters: {
        docs: {
          description: {
    
    OZGCloud's avatar
    OZGCloud committed
            component:
              'The headings are native HTML h-elements, styled with additional classes (see code)',
    
    OZGCloud's avatar
    OZGCloud committed
    };
    
    export default meta;
    
    type Story = StoryObj;
    
    OZGCloud's avatar
    OZGCloud committed
    
    export const Default: Story = {
    
      render: () => ({
        template: '<h1 class="heading-1">Heading 1</h1><h2 class="heading-2">Heading 2</h2>',
      }),
    
    OZGCloud's avatar
    OZGCloud committed
    };