Skip to content

Commit

Permalink
refactor(List): add extra default list story
Browse files Browse the repository at this point in the history
  • Loading branch information
ITML committed Feb 22, 2022
1 parent b98641a commit 95665cd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ui/List/DefaultList.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { List } from 'semantic-ui-react';

export default {
title: 'Components/List',
component: List,
argTypes: {},
};

const Template = (args) => <List {...args}></List>;

export const Default = Template.bind({});
Default.args = {
floated: 'left',
selection: false,
animated: false,
divided: false,
horizontal: false,
items: ['List Item 1', 'List Item 2', 'List Item 3', 'List Item 4'],
};
3 changes: 3 additions & 0 deletions theme/themes/eea/elements/list.variables
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
@imageDistance: 0.5em;
@imageAlign: top;

/* Item */
@itemColor: @primaryColor;

/* Content */
@contentDistance: 0.5em;
@contentLineHeight: @itemLineHeight;
Expand Down

0 comments on commit 95665cd

Please sign in to comment.