File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/vuetify/src/labs/VOtpInput Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 9
9
align-items : center
10
10
display : flex
11
11
justify-content : center
12
- padding : .5 rem
12
+ padding : $ otp-input-padding
13
13
position : relative
14
14
15
15
.v-field
16
16
height : 100%
17
- margin : 0 .25rem
18
17
19
18
.v-otp-input__divider
20
19
margin : 0 8px
21
20
22
21
.v-otp-input__content
23
22
align-items : center
24
23
display : flex
24
+ gap : $otp-input-content-gap
25
25
height : 64px
26
- padding : .5 rem
26
+ padding : $ otp-input-content-padding
27
27
justify-content : center
28
28
max-width : 320px
29
29
position : relative
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export type VOtpInputSlots = {
29
29
export const makeVOtpInputProps = propsFactory ( {
30
30
autofocus : Boolean ,
31
31
divider : String ,
32
+ fluid : Boolean ,
32
33
focusAll : Boolean ,
33
34
label : {
34
35
type : String ,
@@ -213,6 +214,7 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
213
214
'v-otp-input' ,
214
215
{
215
216
'v-otp-input--divided' : ! ! props . divider ,
217
+ 'v-otp-input--fluid' : props . fluid ,
216
218
} ,
217
219
props . class ,
218
220
] }
Original file line number Diff line number Diff line change 1
1
@use ' ../../styles/settings' ;
2
2
@use ' ../../styles/tools' ;
3
+
4
+ $otp-input-content-gap : .5rem !default ;
5
+ $otp-input-content-padding : .5rem 0 !default ;
6
+ $otp-input-padding : .5rem 0 !default ;
You can’t perform that action at this time.
0 commit comments