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
Parameter | Type |
---|---|
isDisabled | boolean |
isSelected | boolean |
error | boolean |
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