v1.1.0
Major Changes
- Now List type are using
UnorderedListandOrderedListcomponents according to providing type. - Fixes
Listsspacingwrong property. Changes24to2.
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>
);