Skip to main content

Checkbox.getBgColor

Components

getBgColor()

getBgColor(isDisabled, isSelected, error): "before:bg-grey4" | "before:bg-transparent before:disabled:opacity-75 disabled:before:bg-grey4" | "before:bg-errorDark" | "before:bg-secondaryLight dark:before:bg-secondaryDark"

Parameters

ParameterType
isDisabledboolean
isSelectedboolean
errorboolean

Returns

"before:bg-grey4" | "before:bg-transparent before:disabled:opacity-75 disabled:before:bg-grey4" | "before:bg-errorDark" | "before:bg-secondaryLight dark:before:bg-secondaryDark"

Source

libs/design-system-core/src/components/Checkbox/getBgColor.ts:1