@@ -59,7 +59,7 @@ const meta: Meta<IInputProps> = {
59
59
defaultValue : { summary : 'false' } ,
60
60
} ,
61
61
} ,
62
- leftIcon : {
62
+ icon : {
63
63
description :
64
64
'Icon rendered inside the input to the left of the input text.' ,
65
65
options : [
@@ -115,24 +115,24 @@ export default meta;
115
115
type Story = StoryObj <
116
116
{
117
117
leadingText : string ;
118
- leftIcon : keyof typeof SystemIcon ;
118
+ icon : keyof typeof SystemIcon ;
119
119
rightIcon : keyof typeof SystemIcon ;
120
120
type : React . HTMLInputTypeAttribute ;
121
- } & Omit < IInputProps , 'leftIcon ' | 'rightIcon' >
121
+ } & Omit < IInputProps , 'icon ' | 'rightIcon' >
122
122
> ;
123
123
124
124
export const Dynamic : Story = {
125
125
name : 'Input' ,
126
126
args : {
127
- leftIcon : undefined ,
127
+ icon : undefined ,
128
128
type : 'text' ,
129
129
rightIcon : undefined ,
130
130
leadingText : '' ,
131
131
leadingTextWidth : undefined ,
132
132
outlined : false ,
133
133
} ,
134
134
render : ( {
135
- leftIcon ,
135
+ icon ,
136
136
rightIcon,
137
137
outlined,
138
138
leadingText,
@@ -143,7 +143,7 @@ export const Dynamic: Story = {
143
143
} ) => (
144
144
< Input
145
145
id = "inlineInputStory"
146
- leftIcon = { leftIcon }
146
+ icon = { icon }
147
147
rightIcon = { rightIcon }
148
148
onChange = { onChange }
149
149
placeholder = "This is a placeholder"
@@ -159,14 +159,14 @@ export const Dynamic: Story = {
159
159
export const InlineWithButton : Story = {
160
160
name : 'Inline with button' ,
161
161
args : {
162
- leftIcon : undefined ,
162
+ icon : undefined ,
163
163
type : 'text' ,
164
164
} ,
165
- render : ( { leftIcon , onChange, type } ) => (
165
+ render : ( { icon , onChange, type } ) => (
166
166
< Stack gap = "$xs" alignItems = "stretch" >
167
167
< Input
168
168
id = "inlineInputStory"
169
- leftIcon = { leftIcon }
169
+ icon = { icon }
170
170
onChange = { onChange }
171
171
placeholder = "This is a placeholder"
172
172
outlined
0 commit comments