'use client'; import classnames from 'classnames'; import React, { useId } from 'react'; import MdIconClose from '../icons-material/MdIconClose'; export interface MdInputChipProps extends React.ButtonHTMLAttributes { label: string | null; active?: boolean; hideCloseIcon?: boolean; prefixIcon?: React.ReactNode; solid?: boolean; } export const MdInputChip: React.FunctionComponent = ({ label, id, active = false, disabled = false, prefixIcon = null, className = '', hideCloseIcon = false, solid = false, ...otherProps }: MdInputChipProps) => { const uuid = useId(); const chipId = id && id !== '' ? id : uuid; const buttonClassNames = classnames('md-chip', className, { 'md-chip--active': !!active, 'md-chip--disabled': !!disabled, 'md-chip--solid': !!solid, }); return ( ); }; export default MdInputChip;