mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #21297 from timothykang/fix-chip-containerelement
material-ui: fix Chip missing `containerElement` prop
This commit is contained in:
Vendored
+1
@@ -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>;
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user