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 55
66import React from 'react' ;
77
8+ import classNames from 'classnames' ;
89import { ClayInput } from '../src' ;
910import ClayForm from '../src/Form' ;
1011
@@ -86,3 +87,29 @@ Textarea.args = {
8687 readOnly : false ,
8788 sizing : undefined ,
8889} ;
90+
91+ export const InlineText = ( args : any ) => (
92+ < div className = "sheet" >
93+ < ClayForm . Group
94+ className = { classNames ( {
95+ [ 'has-error' ] : args . hasError ,
96+ [ 'has-warning' ] : args . hasWarning ,
97+ [ 'has-success' ] : args . hasSuccess ,
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