Skip to content

The open alternative to Salesforce, designed for AI.

462 B
Raw Blame
import { styled } from '@linaria/react';

type GraphWidgetLegendDotProps = {
  color: string;
  className?: string;
};

const StyledDot = styled.div<{ color: string }>`
  background: ${({ color }) => color};
  border-radius: var(--t-border-radius-xs);
  flex-shrink: 0;
  height: 8px;
  width: 8px;
`;

export const GraphWidgetLegendDot = ({
  color,
  className,
}: GraphWidgetLegendDotProps) => {
  return <StyledDot color={color} className={className} />;
};