Skip to content

Extract Card states from types #138

@adamkudrna

Description

@adamkudrna

Currently the types and states are mixed in a single prop:

Card.propTypes = {
  // …
  type: PropTypes.oneOf(['flat', 'bordered', 'warning', 'error']),
};
  1. They should be split into two props because type and state are two different concepts.
  2. More UI states could be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions