score:1

well they may cause a similar look (0.35em margin vs 16px margin) but they are more concerned with semantics. paragraph will also result in a p element rather than a div element.

the documentation could be improved. feel free to raise an issue or even open a pr.

score:10

there are two parts of difference.


first,the css unit is different.the em unit for gutterbottom is relative.1em equals to the font-size of the father component.

gutterbottom: {
    marginbottom: '0.35em',
},
paragraph: {
    marginbottom: 16,
},

second,paragraph is used to choose the basic component of typography.if paragraph is true ,the typography is "p".if paragraph is false,check the two default setting, or the typography will be "span".

const component =
    componentprop ||
    (paragraph ? 'p' : headlinemapping[variant] || defaultheadlinemapping[variant]) ||
    'span';

Related Query

More Query from same tag