We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760fc2f commit 02b9807Copy full SHA for 02b9807
src/Common/Checkbox.tsx
@@ -35,7 +35,7 @@ export class Checkbox extends Component<CheckboxProps> {
35
<input
36
{...(this.props.name ? { name: this.props.name } : {})}
37
type="checkbox"
38
- className="form__checkbox"
+ className={`form__checkbox ${this.props.error ? 'error': ''}`}
39
disabled={this.props.disabled}
40
value={this.props.value}
41
onChange={this.props.onChange}
src/Common/Types.ts
@@ -117,6 +117,7 @@ export interface CheckboxProps {
117
onClick?: (event) => void
118
id?: string
119
dataTestId?: string
120
+ error?: boolean
121
}
122
123
export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
0 commit comments