UNPKG

@material-ui/core

Version:

React components that implement Google's Material Design.

44 lines (39 loc) 1.06 kB
import * as React from 'react'; import { StandardProps, PropTypes } from '..'; export interface ChipProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, ChipClassKey> { avatar?: React.ReactElement<any>; clickable?: boolean; color?: PropTypes.Color; component?: React.ReactType<ChipProps>; deleteIcon?: React.ReactElement<any>; icon?: React.ReactElement<any>; label?: React.ReactNode; onDelete?: React.EventHandler<any>; variant?: 'default' | 'outlined'; } export type ChipClassKey = | 'root' | 'colorPrimary' | 'colorSecondary' | 'clickable' | 'clickablePrimary' | 'clickableSecondary' | 'deletable' | 'deletablePrimary' | 'deletableSecondary' | 'outlined' | 'outlinedPrimary' | 'outlinedSecondary' | 'avatar' | 'avatarPrimary' | 'avatarSecondary' | 'avatarChildren' | 'label' | 'deleteIcon' | 'deleteIconPrimary' | 'deleteIconSecondary' | 'deleteIconOutlinedColorPrimary' | 'deleteIconOutlinedColorSecondary'; declare const Chip: React.ComponentType<ChipProps>; export default Chip;