UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

45 lines (44 loc) 1.04 kB
import type { ComponentPropsWithRef, ReactNode } from 'react'; /** * Tags represent a status, or a common denominator. They make sections and entities quickly identifiable and searchable. * * @example * <Tag * label="Here goes your label!" * icon={<Icon />} * handleDelete={() => ...} * palette="red" * size="small" * /> */ export declare const Tag: import("@vtex/admin-ui-react").AdminUIJsxElement<"div", TagOptions, { palette: { lightBlue: any; green: any; orange: any; cyan: any; purple: any; teal: any; red: any; gray: any; }; size: { small: any; regular: any; }; }>; export interface TagOptions { /** * Tag Label */ label: string; /** * when defined the tag is deletable */ handleDelete?: () => void; /** * Tag icon */ icon?: ReactNode; } export declare type TagProps = ComponentPropsWithRef<typeof Tag> & TagOptions;