Merge pull request #21297 from timothykang/fix-chip-containerelement

material-ui: fix Chip missing `containerElement` prop
This commit is contained in:
Daniel Rosenwasser
2017-11-07 00:06:43 -08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -947,6 +947,7 @@ declare namespace __MaterialUI {
export interface ChipProps {
backgroundColor?: string;
className?: string;
containerElement?: React.ReactNode | string;
labelColor?: string;
labelStyle?: React.CSSProperties;
onRequestDelete?: React.TouchEventHandler<Chip>;
+2
View File
@@ -3030,6 +3030,8 @@ const ChipExampleSimple = () => (
<Chip labelColor={blue500}>Blue Label Color</Chip>
<Chip><Avatar size={32} color={blue300} backgroundColor={indigo900}>UI</Avatar> Avatar</Chip>
<Chip style={styles.chip}>Styled</Chip>
<Chip containerElement="span">String Container</Chip>
<Chip containerElement={() => {}}>ReactNode Container</Chip>
</div>
);