File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
packages/clay-form/stories Expand file tree Collapse file tree 1 file changed +27
-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' ;
@@ -86,3 +87,29 @@ Textarea.args = {
86
87
readOnly : false ,
87
88
sizing : undefined ,
88
89
} ;
90
+
91
+ export const InlineText = ( args : any ) => (
92
+ < div className = "sheet" >
93
+ < ClayForm . Group
94
+ className = { classNames ( {
95
+ [ 'has-error' ] : args . hasError ,
96
+ [ 'has-success' ] : args . hasSuccess ,
97
+ [ 'has-warning' ] : args . hasWarning ,
98
+ } ) }
99
+ >
100
+ < label htmlFor = "inlineText" > Inline Text Example</ label >
101
+ < ClayInput . InlineText
102
+ id = "inlineText"
103
+ placeholder = "Untitled Case Study"
104
+ readOnly = { args . readOnly }
105
+ />
106
+ </ ClayForm . Group >
107
+ </ div >
108
+ ) ;
109
+
110
+ InlineText . args = {
111
+ hasError : false ,
112
+ hasSuccess : false ,
113
+ hasWarning : false ,
114
+ readOnly : false ,
115
+ } ;
You can’t perform that action at this time.
0 commit comments