Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

577 B
Raw Blame
import './Splotch.scss'

import clsx from 'clsx'

export enum SplotchColor {
    Purple = 'purple',
    Blue = 'blue',
    Green = 'green',
    Black = 'black',
    White = 'white',
}

export interface SplotchProps {
    color: SplotchColor
}

/** An icon-sized blob signifying the given color. It can serve e.g. as a `LemonButton` icon in a color selection menu. */
export function Splotch({ color }: SplotchProps): JSX.Element {
    return (
        <div className={clsx('Splotch', `Splotch--${color}`)}>
            <div className="Splotch__paint" />
        </div>
    )
}