Remove badge

Exports

Import these components from @mbsw/ui.

RemoveBadge

Props

The tables list common props for each component. See the full types for supported prop combinations and inherited HTML and Radix props.

RemoveBadge

RemoveBadge props
PropTypeRequirement
aria-label

Defines a string value that labels the current element.

stringRequired
size'lg' | 'md' | 'sm'Optional

Type reference

Show full types

Full TypeScript definitions, including prop combinations and inherited props.

import { type ButtonHTMLAttributes } from 'react';

export type RemoveBadgeSize = 'lg' | 'md' | 'sm';

type DataAttributes = {
    [key: `data-${string}`]: boolean | number | string | undefined;
};

export type RemoveBadgeProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'disabled' | 'size' | 'type'> & DataAttributes & {
    'aria-label': string;
    children?: never;
    disabled?: never;
    size?: RemoveBadgeSize;
    type?: never;
};

export declare const RemoveBadge: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "disabled" | "type" | "size"> & DataAttributes & {
    'aria-label': string;
    children?: never;
    disabled?: never;
    size?: RemoveBadgeSize;
    type?: never;
} & import("react").RefAttributes<HTMLButtonElement>>;