File tree 1 file changed +28
-0
lines changed
packages/clay-form/stories 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 3
3
* SPDX-License-Identifier: BSD-3-Clause
4
4
*/
5
5
6
+ import classNames from 'classnames' ;
6
7
import React from 'react' ;
7
8
8
9
import { ClayInput } from '../src' ;
9
10
import ClayForm from '../src/Form' ;
10
11
12
+
11
13
export default {
12
14
argTypes : {
13
15
sizing : {
@@ -86,3 +88,29 @@ Textarea.args = {
86
88
readOnly : false ,
87
89
sizing : undefined ,
88
90
} ;
91
+
92
+ export const InlineText = ( args : any ) => (
93
+ < div className = "sheet" >
94
+ < ClayForm . Group
95
+ className = { classNames ( {
96
+ [ 'has-error' ] : args . hasError ,
97
+ [ 'has-success' ] : args . hasSuccess ,
98
+ [ 'has-warning' ] : args . hasWarning ,
99
+ } ) }
100
+ >
101
+ < label htmlFor = "inlineText" > Inline Text Example</ label >
102
+ < ClayInput . InlineText
103
+ id = "inlineText"
104
+ placeholder = "Untitled Case Study"
105
+ readOnly = { args . readOnly }
106
+ />
107
+ </ ClayForm . Group >
108
+ </ div >
109
+ ) ;
110
+
111
+ InlineText . args = {
112
+ hasError : false ,
113
+ hasSuccess : false ,
114
+ hasWarning : false ,
115
+ readOnly : false ,
116
+ } ;
You can’t perform that action at this time.
0 commit comments