1.0.6 • Published 4 years ago

jvx-material-input v1.0.6

Weekly downloads
26
License
-
Repository
github
Last release
4 years ago

\<jvx-material-input>

A material design input web component based on Deepak Pandey's material input

Install jvx-material-input

npm install jvx-material-input

API

Slots

NameDescription
prependUse this slot for any element you want to show before the input.
appendUse this slot for any element you want to show after the input.

Properties/Attributes

NameTypeDefaultDescription
typeString''The good old type of the input.
labelString''Label to display for the input, and aria-label.
valueString''The default value of the input.
disabledBooleanfalseTrue to disable the input.
outlineBooleanfalseTrue to outline the component.
flatRoundBooleanfalseTrue to give a nice flat rounded style to the input.

Methods

None

Events

Event NameTargetDetailDescription
inputStringFired when the user changes the value of the input. The detail contains the new value.

CSS Custom Properties

None

Global Custom Properties

NameDefaultDescription
--jvx-material-input-primaryblueColor of the filled input's bottom line when idle.
--jvx-material-input-background#fff'#D5D5D5' if flatRound is trueColor of the input's background fill.
--jvx-material-input-accent#b949d5Color when active of the underline ripple, the outline, and the caret.
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago