UNPKG

@project44-manifest/react

Version:

Manifest Design System react components

37 lines 1.04 kB
import React from 'react'; import { As, Options, Props } from '../../system'; import type { StyleProps } from '../../types'; export declare type TagElement = 'div'; export interface TagOptions<T extends As = TagElement> extends Options<T>, StyleProps { /** * Whether the tag supports click to copy */ isCopyable?: boolean; /** * Whether the tag is removable. */ isRemovable?: boolean; /** * Whether the tag is disabled. */ isDisabled?: boolean; /** * Handler called on tag removable. */ onRemove?: () => void; /** * The tag label. */ label?: string; /** * Props passed to the remove button. */ removeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>; /** * The start adornment. */ startAdornment?: React.ReactNode; } export declare type TagProps<T extends As = TagElement> = Props<TagOptions<T>>; export declare const Tag: import("../../system").Component<TagOptions<"div">>; //# sourceMappingURL=Tag.d.ts.map