You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/components/content/_components/checkbox.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
#tab-1
6
6
7
-
`SfCheckbox` is a wrapper around `<input type="checkbox">` with additional styles for different states . It can be used for forms or expressing consents.
7
+
`SfCheckbox` is a wrapper around `<input type="checkbox">` with additional styles for different states . It can be used for forms or expressing consents.
8
8
9
9
The root element is an `<input>` so any attributes that can be used on an `<input>` can be used on `SfCheckbox`.
10
10
@@ -75,18 +75,23 @@ It's focusable and can be toggled with `Space`.
75
75
76
76
77
77
::vue-only
78
-
| Prop name | Type | Default value | Possible values |
Copy file name to clipboardExpand all lines: apps/docs/components/content/_components/input.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,10 @@ If you need to make this field required, it is crucial to communicate this inten
31
31
### Input with icons
32
32
33
33
::vue-only
34
-
You can insert content before and after your input using the `prefix` and `suffix` slots.
34
+
You can insert content before and after your input using the `prefix` and `suffix` slots.
35
35
::
36
36
::react-only
37
-
You can insert content before and after your input using the `slotPrefix` and `slotSuffix` props.
37
+
You can insert content before and after your input using the `slotPrefix` and `slotSuffix` props.
38
38
::
39
39
40
40
@@ -114,10 +114,10 @@ This is an example of what `SfInput` might look like in your end code. It has a
114
114
## Notes
115
115
116
116
::vue-only
117
-
All non-prop attributes and styles added to `SfInput` component are passed directly to the native input element. This means that you can add all of the input attributes directly to `SfInput`. If you want to style the wrapper `div`, you can pass your classes via the `wrapperClass` prop.
117
+
All non-prop attributes and styles added to `SfInput` component are passed directly to the native input element. This means that you can add all of the input attributes directly to `SfInput`. If you want to style the wrapper `div`, you can pass your classes via the `wrapperClass` prop.
118
118
::
119
119
::react-only
120
-
All non-prop attributes and styles added to `SfInput` component are passed directly to the native input element. This means that you can add all of the input attributes directly to `SfInput`. If you want to style the wrapper `div`, you can pass your classes via the `wrapperClassName` prop.
120
+
All non-prop attributes and styles added to `SfInput` component are passed directly to the native input element. This means that you can add all of the input attributes directly to `SfInput`. If you want to style the wrapper `div`, you can pass your classes via the `wrapperClassName` prop.
121
121
::
122
122
123
123
Since, `size` is a specified prop of `SfInput`, you won't be able to pass the native `size` attribute to your input element. Instead, you can use the `width` property with `ch` unit instead (eg. `width: 10ch`).
@@ -149,7 +149,6 @@ Avoid adding `div` tags to slots. If an input element is wrapped in `label` tag
0 commit comments