3.14.27 • Published 11 months ago

@forter/input v3.14.27

Weekly downloads
110
License
Apache-2.0
Repository
github
Last release
11 months ago

fc-input

An element for data entry

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
   import '@forter/input';
</script>

<fc-input name="input"></fc-input>

Examples

<!-- prefix -->
   <fc-input>
     <fc-icon slot="prefix" icon="search"></fc-icon>
   </fc-input>

<!-- suffix -->
   <fc-input>
     <fc-icon slot="suffix" icon="close"></fc-icon>
   </fc-input>

<!-- prefix and suffix -->
   <fc-input>
     <fc-icon slot="prefix" icon="search"></fc-icon>
     <fc-icon slot="suffix" icon="close"></fc-icon>
   </fc-input>

<!-- number and max -->
   <fc-input type="number" step="any" max="10">
   </fc-input>

<!-- tel icon -->
   <fc-input type="tel" icon>
   </fc-input>

<!-- password icon -->
   <fc-input type="password" icon>
   </fc-input>

<!-- number icon -->
   <fc-input type="number" step="any" icon>
   </fc-input>

<!-- email icon -->
   <fc-input type="email" icon>
   </fc-input>

<!-- file icon -->
   <fc-input type="file" icon>
   </fc-input>

<!-- search icon -->
   <fc-input type="search" icon>
   </fc-input>

<!-- valueList icon -->
   <fc-input type="valueList" icon>
   </fc-input>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseWhether the input is disabled
flatflatbooleanfalseWhether the input had no depth or border
iconiconbooleanfalseWhether to display the type icon at the prefix
invalidinvalidbooleanfalseWhether the input is invalid
labellabelstring"Enter text..."Label for the input. example: I just wrote something!
loadingloadingbooleanfalseIf the button is loading
maxmaxstring \| numbermax value for the input. example: 10
minminstring \| numbermin value for the input. example: 0
namenamestring
novalidationnovalidationbooleanfalseSet to true when you wish to control input validation state from outside the component
patternpatternstringHTML5 pattern for the string
readonlyreadonlybooleanfalseWhether the input is readonly
requiredrequiredbooleanfalseIf the input is required
size"small" \| "medium" \| "large"Pre-Defined size
typetype"color" \| "email" \| "number" \| "password" \| "search" \| "tel" \| "url" \| "date" \| "file" \| "time" \| "upload" \| "valueList""text"The input's type
validvalidbooleanfalseWhether the input is valid
valuestring""Input's value. example: Assaf
valuesvaluesany[]When type is value list, those are the default valuesValues represents as array of objects: {id: 1, label: 'first'}
warningwarningstring

Events

EventDescription
change
inputfired when the input is changed

CSS Custom Properties

PropertyDescription
--fc-input-background-colorinputs background-color, default: white
--fc-input-border-radiusexample: 2px
--fc-input-cursordefault: text. example: pointer
--fc-input-focus-borderexample: inset 0 0 0 4px rgba(255, 0, 0, 0.21)
--fc-input-fontthe font, default: 13px 400. example: var(--fc-font-20px-600)
--fc-input-font-colorinput's font color, default: black
--fc-input-heightinputs height, default: 33px
--fc-input-placeholder-colorinput's placeholder color, default: black
--fc-input-prefix-heightdefault: 20px
--fc-input-shadowdefault: 0 2px 6px 2px var(--grey-3, #dee2e6)
--fc-input-suffix-heightdefault: 20px
--fc-input-widthdefault: 203px. example: 500px

fc-textarea

An element for data entry for longer text.

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
   import '@forter/input';
</script>

<fc-textarea></fc-textarea>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalse
flatflatbooleanfalseWhether the input had no depth or border
hideResizehideResize"" \| "resize: none"
invalidinvalidbooleanfalseWhether the input is invalid
labellabelstring"Enter text..."Label for the input
maxlengthmaxlengthstringMaximum text length
minlengthminlengthstringMinimum text length
namenamestring
readonlyreadonlybooleanfalseIf the input is readonly
requiredrequiredbooleanfalseIf the input is required
rowsrowsstring"10"Number of rows for the textarea
spellcheckspellcheck"true" \| "default" \| "false""default"Specifies whether the <textarea> is subject to spell checking by the underlying browser/OS.
validvalidbooleanfalseWhether the input is valid
valuestring""Input's value
wrapwrap"hard" \| "soft""soft"Indicates how the control wraps text. Possible values are:- hard: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the cols attribute must also be specified for this to take effect.- soft: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.

Events

EventDescription
changewhen typing input method: onInput example: { "target": { "invalid": true, "value": "text" } }

CSS Custom Properties

PropertyDescription
--fc-textarea-fontthe font, default: 13px 400. example: var(--fc-font-20px-600)
--fc-textarea-widthdefault: 100%. example: 200px
3.14.27

11 months ago

3.14.25

12 months ago

3.14.26

12 months ago

3.14.19

1 year ago

3.14.17

1 year ago

3.14.18

1 year ago

3.14.22

1 year ago

3.14.23

1 year ago

3.14.24

1 year ago

3.14.20

1 year ago

3.14.21

1 year ago

3.14.13

1 year ago

3.14.14

1 year ago

3.14.15

1 year ago

3.14.16

1 year ago

3.14.11

1 year ago

3.14.12

1 year ago

3.14.9

1 year ago

3.14.8

1 year ago

3.14.7

1 year ago

3.14.6

1 year ago

3.14.10

1 year ago

3.13.2

2 years ago

3.13.1

2 years ago

3.13.4

2 years ago

3.13.3

2 years ago

3.14.1

2 years ago

3.14.0

2 years ago

3.14.3

1 year ago

3.14.2

2 years ago

3.14.5

1 year ago

3.14.4

1 year ago

3.13.0

2 years ago

3.12.5

2 years ago

3.12.6

2 years ago

3.12.1

2 years ago

3.12.0

2 years ago

3.11.6

2 years ago

3.11.8

2 years ago

3.11.7

2 years ago

3.11.9

2 years ago

3.12.3

2 years ago

3.12.2

2 years ago

3.12.4

2 years ago

3.11.11

2 years ago

3.11.10

2 years ago

3.11.4

2 years ago

3.11.5

2 years ago

3.11.0

2 years ago

3.11.1

2 years ago

3.10.11

2 years ago

3.10.10

2 years ago

3.10.9

2 years ago

3.10.8

2 years ago

3.10.5

2 years ago

3.10.7

2 years ago

3.10.6

2 years ago

3.10.4

2 years ago

3.10.3

2 years ago

3.10.2

3 years ago

3.10.1

3 years ago

3.10.0

3 years ago

3.9.1

3 years ago

3.9.0

3 years ago

3.8.0

3 years ago

3.7.2

3 years ago

3.7.1

3 years ago

3.7.0

3 years ago

3.6.42

3 years ago

3.6.41

3 years ago

3.6.40

3 years ago

3.6.39

3 years ago

3.6.38

3 years ago

3.6.37

3 years ago

3.6.36

4 years ago

3.6.35

4 years ago

3.6.34

4 years ago

3.6.33

4 years ago

3.6.32

4 years ago

3.6.31

4 years ago

3.6.29

4 years ago

3.6.30

4 years ago

3.6.28

4 years ago

3.6.27

4 years ago

3.6.26

4 years ago

3.6.25

4 years ago

3.6.24

4 years ago

3.6.23

4 years ago

3.6.22

4 years ago

3.6.21

4 years ago

3.6.20

4 years ago

3.6.19

4 years ago

3.6.18

4 years ago

3.6.17

4 years ago

3.6.16

4 years ago

3.6.15

4 years ago

3.6.14

4 years ago

3.6.13

4 years ago

3.6.12

4 years ago

3.6.11

4 years ago

3.6.10

4 years ago

3.6.9

4 years ago

3.6.8

4 years ago

3.6.7

4 years ago

3.6.6

4 years ago

3.6.5

4 years ago

3.6.4

4 years ago

3.6.3

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.6.0

4 years ago

3.5.12

4 years ago

3.5.11

4 years ago

3.5.10

4 years ago

3.5.9

4 years ago

3.5.8

4 years ago

3.5.7

4 years ago

3.5.6

4 years ago

3.5.5

4 years ago

3.5.4

4 years ago

3.5.3

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.2.13

4 years ago

3.3.0

4 years ago

3.2.12

4 years ago

3.2.11

4 years ago

3.2.10

4 years ago

3.2.9

4 years ago

3.2.8

4 years ago

3.2.7

4 years ago

3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1-beta.304

5 years ago

1.0.1-beta.301

5 years ago

1.0.1-beta.292

5 years ago

1.0.1-beta.263

5 years ago

1.0.1-beta.262

5 years ago

1.0.1-beta.247

5 years ago

1.0.1-beta.245

5 years ago

1.0.1-beta.229

5 years ago

1.0.1-beta.228

5 years ago

1.0.0

5 years ago

1.0.0-alpha.12

5 years ago

1.0.0-alpha.11

5 years ago

1.0.0-alpha.10

5 years ago

1.0.0-alpha.9

5 years ago

1.0.0-alpha.8

5 years ago

1.0.0-alpha.7

5 years ago

1.0.0-alpha.6

5 years ago

1.0.0-alpha.5

5 years ago

1.0.0-alpha.4

5 years ago

1.0.0-alpha.3

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

1.0.0-alpha.0

5 years ago