UNPKG

@pagopa/mui-italia

Version:

[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).

14 lines (13 loc) 701 B
import { ChipProps } from '@mui/material/Chip'; import { FC } from 'react'; /** * This component resolves an accessibility issue with the deletable version of the Chip component. * When the Chip component has the onDelete property, it assumes the role button and a delete icon appears. * Whitout the onClick property the components is a button, but clicking on it nothing happens. * This leads to an accessiblity problems, because we have a button that does nothing and a delete icon that isn't reachable. * With this component we are going to remove the role button attribute. */ declare const Chip: FC<Exclude<ChipProps, 'deleteIcon' | 'label'> & { label: string; }>; export default Chip;