Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

Badge

Badge using the host's compact status labels presentation.

Import

import { Badge } from "@dartwic/interface-sdk/ui";

Declaration

export const Badge: HostComponent<BadgeProps>;

BadgeProps

Compact host status label.

export interface BadgeProps extends HostComponentProps {
    asChild?: boolean;
}
PropTypeRequirementDescription
asChildbooleanOptional
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.