mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
material-ui: fix Chip missing containerElement prop
This commit is contained in:
1
types/material-ui/index.d.ts
vendored
1
types/material-ui/index.d.ts
vendored
@@ -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