import * as React from "react"; import { Checkbox } from "baseui/checkbox"; import { expandBorderStyles } from "baseui/styles"; export default function Example() { const [checked, setChecked] = React.useState(true); return ( setChecked(!checked)} overrides={{ Root: { style: ({ $theme }) => ({ ...expandBorderStyles($theme.borders.border300), }), }, Label: { style: ({ $theme }) => ({ color: $theme.colors.warning, }), }, Checkmark: { style: ({ $checked, $theme }) => ({ borderLeftColor: $theme.colors.warning, borderRightColor: $theme.colors.warning, borderTopColor: $theme.colors.warning, borderBottomColor: $theme.colors.warning, backgroundColor: $checked ? $theme.colors.warning : null, }), }, }} > With style overrides ); }