github.com/GoogleCloudPlatform/testgrid@v0.0.174/web/stories/testgrid-grid.stories.ts (about)

     1  import { html, TemplateResult } from 'lit';
     2  import '../src/testgrid-grid';
     3  
     4  export default {
     5    title: 'Grid',
     6    component: 'testgrid-grid',
     7  };
     8  
     9  interface Story<T> {
    10    (args: T): TemplateResult;
    11    args?: T;
    12  }
    13  
    14  interface Args {
    15    dashboardName: string;
    16    tabName: String;
    17  }
    18  
    19  const Template: Story<Args> = ({
    20    dashboardName = '', tabName = '',
    21  }: Args) => {
    22    return html`<testgrid-grid .dashboardName="${dashboardName}" .tabName="${tabName}"></testgrid-grid>`;
    23  };
    24  
    25  export const Grid = Template.bind({});
    26  Grid.args = {dashboardName: 'fake-dashboard-1', tabName: 'fake_tab_3'}