@bonprix-ds/react-checkbox 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +16 -0
- package/dist/index.js +3390 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CheckboxBaseProps } from '@bonprix-ds/internal-components';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Checkbox: FC<CheckboxProps>;
|
|
5
|
+
export default Checkbox;
|
|
6
|
+
|
|
7
|
+
export declare type CheckboxProps = {
|
|
8
|
+
/** The helper text to be displayed below the checkbox. Should provide an additional description about the input to help fill out the form. */
|
|
9
|
+
helperText?: string;
|
|
10
|
+
/** If set to `true`, the checkbox will be marked as erroneous. */
|
|
11
|
+
error?: boolean;
|
|
12
|
+
/** Provides an error message as additional description to an erroneous checkbox. Will only be shown if `error` is true. */
|
|
13
|
+
errorText?: string;
|
|
14
|
+
} & CheckboxBaseProps;
|
|
15
|
+
|
|
16
|
+
export { }
|