Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds TextInput as a new web component #27348

Conversation

brianchristopherbrady
Copy link
Contributor

@brianchristopherbrady brianchristopherbrady commented Mar 27, 2023

TextInput

An implementation of a text input as a form-connected web-component.

Design Spec

Link to Text Input Design Spec in Figma


Engineering Spec

Fluent WC3 Text Input extends from the FAST Text Field and is intended to be as close to the Fluent UI React 9 Input implementation as possible. However, due to the nature of web components there will not be 100% parity between the two.


Class: TextInput


Component Name

<fluent-text-input>


Variables

Name Description Type
TextInputSize Size variations for text input { small: "small", medium: "medium", large: "large" }
TextInputAppearance Appearance variations for text input { outline: "outline", underline: "underline", filledLighter: "filled-lighter", filledDarker: "filled-darker" }
TextInputType Text input types { email: "email", password: "password", tel: "tel", text: "text", url: "url" }

Fields

Name Type Default Description
appearance TextInputAppearance outline Sets appearance of text input.
autofocus boolean false Indicates element should get focus after the page finishes loading..
disabled boolean false Disables text input
list string Allows associating a datalist to an element by id
maxlength number The maximum number of characters a user can enter
minlength number The minimum number of characters a user can enter
name string The name of the control
pattern string A regular expression the text input's contents must match in order to be valid
placeholder string An exemplar value to display in the text input field whenever it is empty
readonly boolean false The text input should be submitted with the form but should not be editable
required boolean false Sets the text input as required
size InputSize medium Sets the size of the text input
spellcheck boolean false Controls whether or not to enable spell checking for the text input, or if the default spell checking configuration should be used
type TextInputType TextInputType.text Sets the size of the text input
current-value Stores the current value of an input element. link: current-value RFC

Methods

Name Privacy Description
select public Selects all the text in the text field
validate public {@inheritdoc (FormAssociated:interface).validate}

Events

Name Type Description Inherited From
change Fires a custom change event

Attributes

Name Field
appearance appearance
autofocus autofocus
list list
maxlength maxlength
minlength minlength
pattern pattern
placeholder placeholder
readonly readonly
size size
spellcheck spellcheck
type type

Slots

Name Description
start used to place content at the start of the text input within the input border
end used to place content at the end of the text input within the input border
The default slot for text input content

Additional Styling Variations

For performance considerations, we have avoided the addition of explicit attributes for appearance variations that modify only one CSS property. Instead, opting to provide guidance for users to apply their own CSS to achieve these appearance variations.


Block v.s Inline

The Fluent UI TextInput component offers two appearance variations for the display property - block (default) and inline. To achieve the inline variation, users should apply their own custom CSS.

/* all instances */

fluent-text-input {
  display: inline-flex;
  align-items: center;
}

/* class instances */

fluent-text-input.inline {
  display: inline-flex;
  align-items: center;
}



Accessibility

W3C Text Input Spec


WAI-ARIA Roles, States, and Properties

This component supports ARIA attributes that inherit from the ARIA Global States and Properties.




Preparation

Fluent Web Component v3 v.s Fluent React 9


Component and Slot Mapping

Fluent UI React 9 Fluent Web Components 3
<Input> <fluent-text-input>
contentBefore start
contentAfter end

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 27, 2023

📊 Bundle size report

🤖 This report was generated against 94f4ec8598a9e34e3ab799f4f5899d5b8dddb645

@size-auditor
Copy link

size-auditor bot commented Mar 27, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 94f4ec8598a9e34e3ab799f4f5899d5b8dddb645 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 27, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e01a615:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration


export const Required = renderComponent(html<TextInputStoryArgs>`
<fluent-text-input required>
<span slot="end">${Person20Regular}${Person20Regular}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for having two icons here?

</div>
`);

export const Inline = renderComponent(html<TextInputStoryArgs>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storybook refuses to show the source code for this story :/
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it just needed to be wrapped in a element. Working now :)

outline: 'outline',
underline: 'underline',
filledLighter: 'filled-lighter',
filledLighterShadow: 'filled-lighter--shadow',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filled-darker-shadow and filled-lighter-shadow are deprecated in FUIR9 and not mentioned in the FUIWC3 component spec. I think we should remove them.

<span slot="end">${Person20Regular}</span>
<fluent-label>Inline Input</fluent-label>
</fluent-text-input>
<p
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered using <fluent-text> in the example?

@@ -116,6 +116,10 @@
"types": "./dist/esm/tab-panel/define.d.ts",
"default": "./dist/esm/tab-panel/define.js"
},
"./text-input": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This should alphabetically go after text

@@ -21,6 +21,7 @@ export * from './switch/index.js';
export * from './tabs/index.js';
export * from './tab/index.js';
export * from './tab-panel/index.js';
export * from './text-input/index.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bellow text

* HTML Attribute: control-size
*/
@attr({ attribute: 'control-size' })
public controlSize: TextInputControlSize = TextInputControlSize.medium;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the agreement is not to assign default value to the attributes unless completely necessary to reduce DOM size. Styles should be authored to honor the default values without explicitly setting them in javascript.

Copy link
Member

@miroslavstastny miroslavstastny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@brianchristopherbrady brianchristopherbrady merged commit ac7f17e into microsoft:web-components-v3 Jun 6, 2023
chrisdholt pushed a commit that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 30, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request Apr 30, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 3, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 8, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 10, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* text input init

* adds text input options

* styles text input

* updates text input styles

* adds input size attribute and styles

* updates text input storybook

* text input: adds properties to class

* text-input: re-exports TextFieldType as TextInputType

* text input: fixes export names

* text input: updates underline styles

* text-input: exports text-input from package.json

* removes dead code

* text-input: removes default attr values

* text-input: updates icon sizes

* text-input: updates block vs inline implimentation

* text-input: updates docs

* text-input: adds styling support for icons and text passed through start/end slots

* text-input: updates border styles

* input: updates storybook content

* updates README

* text-input: adds filled non shadow variants

* text-input: modifies storybook examples

* text-input: removes dead import

* addresses PR feedback

* text input: updates styles

* text input: yarn change

* text input: updates README and styles

* text input: shorthands css property

* textinput: fixes ts errors

* textinput: updates attribute name

* textinput: uses fluent-label in stories

* textinput: updates control size type name

* textinput: updates storybook

* textinput: updates type

* textinput: updates story styles

* Update change/@fluentui-web-components-ec003fd2-a453-4e83-b620-9ec9f3ddffa0.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

* text-input: addresses feedback

* text-input: alphabetize exports, removes setting default attr value

---------

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants