Unknown prop `primary` on FloatingActionButton
Version 15.4
When using primary prop on FloatingActionButton
Unknown prop
primaryon
There is no primary property on FAB. The primary type is applied by default. If you need a primary FAB write it this way-
<FloatingActionButton style={style}>
<ContentAdd />
</FloatingActionButton>
@pratimary Is right, primary isn't supposed to have any effect. However, you can use the secondary property.
Ok, clear. But I think it should be noted more cleary in the docs at the secondary perhaps?
But at the very least I think it should not give a unknown prop warning for it, maybe output a warning that specifically explains that it is primary by default.
But at the very least I think it should not give an unknown prop warning for it
This warning is provided by React itself. I agree it could be improved.
Actually, we have this property on the next branch. So we should be good now.
E.g. :
<Button fab primary>
<span className="material-icons">add</span>
</Button>
<Button fab accent>
<span className="material-icons">mode_edit</span>
</Button>