+ args: {
+ value: [...data],
+ rows: 3,
+ paginator: true,
+ layout: 'list'
+ },
+ render: (args) => ({
+ props: { ...args },
+ template: `
+
+
+ @for(item of products; track item.id){
+
+
+
+
+
+
+
{{ item.category }}
+
{{ item.name }}
+
+
+
+ }
+
+ `
+ })
+};
+export default meta;
+
+type Story = StoryObj
;
+
+export const Default: Story = {};
+
+export const Grid: Story = {
+ args: {
+ layout: 'grid',
+ rows: 6
+ },
+ render: (args) => ({
+ props: { ...args },
+ template: `
+
+
+
+ @for(item of products; track item.id){
+
@@ -52,21 +96,10 @@ const meta: Meta
= {
{{ item.name }}
-
-
-
- `
- };
- }
-};
-export default meta;
-
-type Story = StoryObj;
-
-export const Primary: Story = {
- args: {
- value: [...data],
- rows: 3,
- paginator: true
- }
+