Skip to content

v1.1.0

Choose a tag to compare

@mustaphaturhan mustaphaturhan released this 05 Feb 07:14
· 21 commits to master since this release

Major Changes

  • Now List type are using UnorderedList and OrderedList components according to providing type.
  • Fixes Lists spacing wrong property. Changes 24 to 2.

If you want to use old List's, just extend defaults and change List key with this:

list: props => {
  const { start, ordered, children, depth } = props;
  let styleType = 'disc';
  if (ordered) styleType = 'decimal';
  if (depth === 1) styleType = 'circle';
  return (
    <List
      spacing={24}
      as={ordered ? 'ol' : 'ul'}
      styleType={styleType}
      pl={4}
    >
      {children}
    </List>
);