UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

27 lines 849 B
import type { TokensTypes } from '@wonderflow/tokens/platforms/web'; import { SymbolProps } from '../..'; export declare type ChipProps = { /** * Set the dimension of the component. */ dimension?: 'small' | 'regular' | 'big'; /** * Set a color from one of the provided values. */ color?: TokensTypes['colors']; /** * Make the chip dismissable. When `true` adds a close button on the side. */ interactive?: boolean; /** * Callback function to be called when the dismiss button is pressed. */ onDismissClick?: () => void; /** * Show an icon before the chip content. * @important The icon is not rendered if `dismissable` is `true` */ icon?: SymbolProps['source']; }; export declare const Chip: FCChildrenClass<ChipProps>; //# sourceMappingURL=chip.d.ts.map