"use client"; /* * Documentation: * Badge — https://app.subframe.com/f023064a5ca0/library?component=Badge_7d75e221-355a-4695-acb7-3902a9f6ffde */ import React from "react"; import * as SubframeUtils from "../../utils"; export interface BadgeRootProps extends React.HTMLAttributes { tone?: | "red-subtle" | "orange-subtle" | "yellow-subtle" | "pear-subtle" | "lime-subtle" | "green-subtle" | "teal-subtle" | "ocean-subtle" | "sky-subtle" | "blue-subtle" | "indigo-subtle" | "violet-subtle" | "fuchsia-subtle" | "pink-subtle" | "sand-subtle" | "brown-subtle" | "red-solid" | "orange-solid" | "yellow-solid" | "pear-solid" | "lime-solid" | "green-solid" | "teal-solid" | "ocean-solid" | "sky-solid" | "blue-solid" | "indigo-solid" | "violet-solid" | "fuchsia-solid" | "pink-solid" | "sand-solid" | "brown-solid" | "red-outline" | "orange-outline" | "yellow-outline" | "pear-outline" | "lime-outline" | "green-outline" | "teal-outline" | "ocean-outline" | "sky-outline" | "blue-outline" | "indigo-outline" | "violet-outline" | "fuchsia-outline" | "pink-outline" | "sand-outline" | "brown-outline" | "brand-primary-solid" | "brand-secondary-solid" | "neutral-solid" | "brand-primary-subtle" | "brand-secondary-subtle" | "neutral-subtle" | "white"; children?: React.ReactNode; size?: "small" | "medium" | "large"; hideDot?: boolean; className?: string; } const BadgeRoot = React.forwardRef( function BadgeRoot( { tone = "neutral-subtle", children, size = "medium", hideDot = false, className, ...otherProps }: BadgeRootProps, ref ) { return (
{children ? ( {children} ) : null}
); } ); export const Badge = BadgeRoot;