Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 099206a

Browse files
committed
fix: label props
1 parent 3f34932 commit 099206a

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

@types/cherry.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ interface InputProps
158158
error?: boolean;
159159
success?: boolean;
160160
size?: "default" | "big";
161+
label?: string;
161162
theme?: object;
162163
}
163164

@@ -183,6 +184,7 @@ interface LabelProps extends React.InputHTMLAttributes<HTMLLabelElement> {
183184
children?: React.ReactNode;
184185
error?: boolean;
185186
success?: boolean;
187+
htmlFor?: string;
186188
theme?: object;
187189
}
188190

dist/cherry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cherry.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cherry-components",
3-
"version": "0.0.1-7",
3+
"version": "0.0.1-8",
44
"description": "Cherry React Components",
55
"main": "dist/cherry.js",
66
"module": "dist/cherry.module.js",

src/Layout/Label/Label.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ function Label({
77
children,
88
error,
99
success,
10+
htmlFor,
1011
theme = localTheme,
1112
...props
1213
}) {
1314
return (
1415
<label
1516
className={className}
1617
css={labelStyles(theme, error, success)}
18+
htmlFor={htmlFor}
1719
{...props}
1820
>
1921
{children}

0 commit comments

Comments
 (0)