Currently the types and states are mixed in a single prop:
Card.propTypes = {
// …
type: PropTypes.oneOf(['flat', 'bordered', 'warning', 'error']),
};
- They should be split into two props because type and state are two different concepts.
- More UI states could be supported.