canon-react icon indicating copy to clipboard operation
canon-react copied to clipboard

Add size property to DetailItem

Open wpwood opened this issue 8 years ago • 1 comments

We should add a size property to the DetailItem component, like we have on Form. This allows for PropType.oneOf validation, where just passing a className does not.

Possible values for the class would be:

const SIZE_CLASSES = {
  'xsmall': 'rs-detail-xsmall',
  'small': 'rs-detail-small',
  'medium': 'rs-detail-medium',
  'large': 'rs-detail-large',
  'xlarge': 'rs-detail-xlarge',
  'xxlarge': 'rs-detail-xxlarge'
};

wpwood avatar Jun 23 '16 14:06 wpwood