input コンポーネントは、HTML input 要素のラッパーで、カスタムスタイルと追加機能を備えています。HTML入力と同じプロパティのほとんどを受け入れ、モバイルデバイスのキーボードと統合します。
基本的な使い方 html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input label = " Default input " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Input with placeholder " placeholder = " Enter company name " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Input with value " value = " 121 S Pinckney St #300 " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Readonly input " value = " Madison " [readonly] = " true " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Disabled input " value = " 53703 " [disabled] = " true " > </ ion-input >
</ ion-item >
</ ion-list > Types input コンポーネントは、"text", "password", "email", "number", "search", "tel", "url" などのテキストタイプの入力のみを対象としています。また、keyup、keydown、keypressなどの標準的なテキスト入力イベントをすべてサポートしています。デフォルトの type は "text" です。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-list >
< ion-item >
< ion-input label = " Text input " placeholder = " Enter text " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Number input " type = " number " placeholder = " 000 " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Password input " type = " password " value = " password " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Email input " type = " email " placeholder = " email@domain.com " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Telephone input " type = " tel " placeholder = " 888-888-8888 " > </ ion-input >
</ ion-item >
</ ion-list >
</ ion-list > Labels ラベルは、入力を説明するために使用されるべきです。これらは視覚的に使用することができ、また、ユーザーが入力に集中しているときには、スクリーンリーダーによって読み上げられます。これにより、ユーザーは入力の意図を理解しやすくなる。Inputにはラベルを割り当てる方法がいくつかあります:
labelプロパティ:プレーンテキストのラベルに使用する。
labelスロット: カスタム HTML ラベルに使用する(実験的)。
aria-label: スクリーンリーダー用のラベルとして使用されるが、ラベルは表示されない。
Label Placement ラベルは、デフォルトでそのコンテンツの幅を占めます。 開発者は labelPlacement プロパティを使用して、ラベルがどのように配置されるかを制御することができます。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input label = " Default label " placeholder = " Enter text " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Fixed label " labelPlacement = " fixed " placeholder = " Enter text " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Stacked label " labelPlacement = " stacked " placeholder = " Enter text " > </ ion-input >
</ ion-item >
< ion-item >
< ion-input label = " Floating label " labelPlacement = " floating " placeholder = " Enter text " > </ ion-input >
</ ion-item >
</ ion-list > Label Slot (実験的) プレーンテキストのラベルは label プロパティを通して渡されるべきですが、カスタム HTML が必要な場合は、代わりに label スロットを通して渡すことができます。
この機能は、Web Component slots のシミュレート版に依存しているため、実験的なものとみなされていることに注意してください。その結果、シミュレートされた動作はネイティブのスロットの動作と完全に一致するとは限りません。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input labelPlacement = " floating " value = " hi@ionic.io " >
< div slot = " label " > Email < ion-text color = " danger " > (Required) </ ion-text > </ div >
</ ion-input >
</ ion-item >
</ ion-list > No Visible Label 表示するラベルが必要ない場合でも、開発者は aria-label を指定する必要があります。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input aria-label = " Email " value = " hi@ionic.io " > </ ion-input >
</ ion-item >
</ ion-list > Clear Options Inputsには、入力の操作方法に応じて、Inputをクリアするための2つのオプションがあります。最初の方法は clearInput プロパティを追加することで、Inputに value があるときにクリアボタンを表示します。2つ目の方法は clearOnEdit プロパティで、入力が編集削除された後、再度入力されるとクリアされます。 type が "password" に設定されているInputは、デフォルトで clearOnEdit が有効になっています。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input
label = " Input with clear button "
labelPlacement = " stacked "
[clearInput] = " true "
placeholder = " Enter text to see clear button "
value = " Default value "
>
</ ion-input >
</ ion-item >
< ion-item >
< ion-input
label = " Input with clear on edit "
labelPlacement = " stacked "
[clearOnEdit] = " true "
placeholder = " Enter text, leave the input, come back and type to clear "
>
</ ion-input >
</ ion-item >
< ion-item >
< ion-input
label = " Password input "
labelPlacement = " stacked "
type = " password "
placeholder = " Enter text, leave the input, come back and type to clear "
>
</ ion-input >
</ ion-item >
</ ion-list > Material Design では、Inputに塗りつぶしのスタイルが用意されています。Inputの fill プロパティは "solid" または "outline" のいずれかに設定することができます。
Filled inputs をiOSで使うためには、inputの mode を md に設定する必要があります。
警告
コンポーネント間のスタイリングの競合のため、fillを使用する入力はion-item内で使用すべきではありません。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-input label = " Solid input " label-placement = " floating " fill = " solid " placeholder = " Enter text " > </ ion-input >
< br />
< ion-input label = " Outline input " label-placement = " floating " fill = " outline " placeholder = " Enter text " > </ ion-input > Helper & Error Text ヘルパーテキストとエラーテキストは、helperText と errorText プロパティを使用して入力の内部で使用することができます。エラーテキストは、 ion-invalid クラスと ion-touched クラスが ion-input に追加されていない限り表示されない。これにより、ユーザがデータを入力する前にエラーが表示されることはありません。
Angularでは、これはフォームバリデーションによって自動的に行われます。JavaScript、React、Vueでは、独自のバリデーションに基づいてクラスを手動で追加する必要があります。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-input
type = " email "
fill = " solid "
label = " Email "
labelPlacement = " floating "
helperText = " Enter a valid email "
errorText = " Invalid email "
ngModel
email
> </ ion-input > Input Counterは、Inputの下に表示されるテキストで、入力可能な文字数のうち、何文字が入力されたかをユーザーに通知するものです。カウンターを追加する場合、デフォルトの動作は、表示される値を inputLength / maxLength としてフォーマットすることです。この動作は、counterFormatterプロパティにフォーマッタ関数を渡すことでカスタマイズすることができます。
ion-itemのcounterとcounterFormatterプロパティはIonic 7で非推奨 となり、代わりにion-inputで直接使用すべきです。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-input label = " Default counter " labelPlacement = " floating " [counter] = " true " maxlength = " 20 " > </ ion-input >
< ion-input
id = " custom-input "
label = " Custom Counter Format "
labelPlacement = " floating "
[counter] = " true "
maxlength = " 20 "
[counterFormatter] = " customCounterFormatter "
> </ ion-input > カウンター付きのInputは、Inputとカウンターの間にボーダーを追加するため、アイテムの下に追加のボーダーを追加するion-item内に配置すべきではありません。ion-padding-startクラスを追加して、カウンターInputとアイテム内Inputを揃えることができます。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input label = " Text input " placeholder = " Enter text " > </ ion-input >
</ ion-item >
< div class = " ion-padding-start " >
< ion-input label = " Counter input " [counter] = " true " maxlength = " 20 " > </ ion-input >
</ div >
</ ion-list > 開発者は ionInput イベントを使用して、キー入力などのユーザー入力に応答して入力値を更新することができます。これは、無効な文字や不要な文字をフィルタリングするのに便利です。
ステート変数に値を格納する場合、ステート変数と ion-input コンポーネントの値の両方を更新することを推奨します。これにより、状態変数と ion-input コンポーネントの値が確実に同期されます。
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input
label = " Alphanumeric Characters "
[value] = " inputModel "
(ionInput) = " onInput($event) "
#ionInputEl
> </ ion-input >
</ ion-item >
</ ion-list > 入力マスキングは、有効な入力値をサポートするように入力を制約する式です。Ionicでは、入力マスキングにMaskito を使うことを推奨しています。Maskitoは、入力フィールドをマスクするための軽量で依存関係のないライブラリです。電話番号、クレジットカード、日付など、幅広いマスクをサポートしています。
Maskitoを使い始めるには、ライブラリをインストールしてください:
npm install @maskito/core @maskito/{angular,react,vue} html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input
label = " Card number "
placeholder = " 0000 0000 0000 0000 "
[maskito] = " cardMask "
[maskitoElement] = " maskPredicate "
> </ ion-input >
</ ion-item >
< ion-item >
< ion-input
label = " US phone number "
placeholder = " +1 (xxx) xxx-xxxx "
[(ngModel)] = " myPhoneNumber "
[maskito] = " phoneMask "
[maskitoElement] = " maskPredicate "
> </ ion-input >
</ ion-item >
</ ion-list > Start and End Slots (experimental) startスロットと endスロットはInputの両側にアイコン、ボタン、接頭辞/接尾辞テキストを配置するために使用することができます。
この機能は Web Component slots のシミュレート版に依存しているため、実験的なものであることに注意してください。そのため、シミュレートされた動作はネイティブのスロットの動作と完全に一致するとは限りません。
注記
ほとんどの場合、これらのスロットに配置されたIcon コンポーネントはaria-hidden="true"を持つべきです。詳細については、Iconアクセシビリティのドキュメント を参照してください。
If slot content is meant to be interacted with, it should be wrapped in an interactive element such as a Button . This ensures that the content can be tabbed to.
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-list >
< ion-item >
< ion-input labelPlacement = " stacked " label = " Email " placeholder = " email@domain.com " >
< ion-icon slot = " start " name = " lock-closed " aria-hidden = " true " > </ ion-icon >
< ion-button fill = " clear " slot = " end " aria-label = " Show/hide " >
< ion-icon slot = " icon-only " name = " eye " aria-hidden = " true " > </ ion-icon >
</ ion-button >
</ ion-input >
</ ion-item >
</ ion-list > テーマ 配色 colorプロパティを設定すると、各Inputのカラーパレットが変更されます。 iosモードでは、このプロパティはキャレットカラーを変更します。 mdモードでは、このプロパティはキャレットカラーとハイライト/アンダーラインカラーを変更します。
注記
The color property does not change the text color of the input. For that, use the --color CSS property .
html src/app/example.component.html example.component.html ts src/app/example.component.ts example.component.ts
< ion-input aria-label = " Primary input " color = " primary " placeholder = " Primary input " > </ ion-input >
< ion-input aria-label = " Secondary input " color = " secondary " placeholder = " Secondary input " > </ ion-input >
< ion-input aria-label = " Tertiary input " color = " tertiary " placeholder = " Tertiary input " > </ ion-input >
< ion-input aria-label = " Success input " color = " success " placeholder = " Success input " > </ ion-input >
< ion-input aria-label = " Warning input " color = " warning " placeholder = " Warning input " > </ ion-input >
< ion-input aria-label = " Danger input " color = " danger " placeholder = " Danger input " > </ ion-input >
< ion-input aria-label = " Light input " color = " light " placeholder = " Light input " > </ ion-input >
< ion-input aria-label = " Medium input " color = " medium " placeholder = " Medium input " > </ ion-input >
< ion-input aria-label = " Dark input " color = " dark " placeholder = " Dark input " > </ ion-input > CSSカスタムプロパティ Inputはscoped encapsulationを採用しており、実行時に各スタイルに追加のクラスを付加することで、CSSを自動的にスコープ化します。CSSでscopedセレクタを上書きするには、higher specificity セレクタが必要です。そのため、クラスを追加してカスタマイズすることをお勧めします。
html src/app/example.component.html example.component.html css src/app/example.component.css example.component.css ts src/app/example.component.ts example.component.ts css src/global.css global.css
< ion-input
aria-label = " Custom input "
placeholder = " Custom input "
class = " custom "
helperText = " Helper text "
[counter] = " true "
[maxlength] = " 20 "
> </ ion-input > Interfaces interface InputChangeEventDetail {
value : string | undefined | null ;
} 必須ではありませんが、このコンポーネントから発行される Ionic イベントでより強く型付けを行うために、CustomEvent インターフェースの代わりにこのインターフェースを使用することが可能です。
interface InputCustomEvent extends CustomEvent {
detail : InputChangeEventDetail ;
target : HTMLIonInputElement ;
} プロパティ autocapitalize Description テキスト値がユーザーによって入力/編集される際に、自動的に大文字にするかどうか、またどのようにするかについて示します。利用可能なオプション: "off", "none", "on", "sentences", "words", "characters". Attribute autocapitalizeType stringDefault 'off'
autocomplete Description コントロールの値が、ブラウザによって自動的に補完されるかどうかを示します。 Attribute autocompleteType "name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo"Default 'off'
autocorrect Description ユーザーがテキスト値を入力/編集する際に、自動補正を有効にするかどうか。 Attribute autocorrectType "off" | "on"Default 'off'
autofocus Description ネイティブの入力要素に autofocus 属性 を設定します。 ページロード時に要素がフォーカスされるには、これだけでは不十分かもしれません。詳しくはmanaging focus を参照してください。 Attribute autofocusType booleanDefault false
Description trueの場合、値があるときにInputにクリアアイコンが表示されます。これをクリックすると、入力がクリアされます。Attribute clear-inputType booleanDefault false
Description クリアボタンに使用するアイコン。clearInputがtrue` に設定されている場合にのみ適用される。 Attribute clear-input-iconType string | undefinedDefault undefined
clearOnEdit Description trueの場合、編集時にフォーカスされた後、値がクリアされる。デフォルトは type が "password" のとき true で、それ以外のときは false です。Attribute clear-on-editType boolean | undefinedDefault undefined
color Description アプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。 "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", と "dark" です.色に関する詳しい情報は theming を参照してください。 Attribute colorType "danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefinedDefault undefined
counter Description trueの場合、文字カウンタが使用された文字の比率と総文字数制限を表示します。カウンターを正しく計算するために、開発者は maxlength プロパティも設定する必要があります。Attribute counterType booleanDefault false
debounce Description キーを押すたびに ionInput イベントが発生するまでの待ち時間をミリ秒単位で設定します。 Attribute debounceType number | undefinedDefault undefined
disabled Description trueの場合、ユーザはInputと対話することができません。Attribute disabledType booleanDefault false
enterkeyhint Description どのエンターキーを表示するかのブラウザへのヒント。指定可能な値。"enter", "done", "go", "next", "previous", "search", and "send". Attribute enterkeyhintType "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefinedDefault undefined
errorText Description Inputの下に配置され、エラーが検出されたときに表示されるテキストです。 Attribute error-textType string | undefinedDefault undefined
fill Description アイテムの塗りつぶし。もし "solid" ならば、アイテムは背景を持つようになります。もし "outline" ならば、アイテムはボーダー付きの透明なものになります。mdモードでのみ使用可能です。 Attribute fillType "outline" | "solid" | undefinedDefault undefined
helperText Description Inputの下に配置され、エラーが検出されなかった場合に表示されるテキストです。 Attribute helper-textType string | undefinedDefault undefined
Description どのキーボードを表示するかのブラウザへのヒント。指定可能な値。"none", "text", "tel", "url", "email", "numeric", "decimal", and "search". Attribute inputmodeType "decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url" | undefinedDefault undefined
label Description 入力に関連付けられた可視ラベル。 プレーンテキストのラベルをレンダリングする必要がある場合に使用する。 両方が使用されている場合、label プロパティが label スロットよりも優先される。 Attribute labelType string | undefinedDefault undefined
labelPlacement Description 入力に対してラベルを配置する位置。"start":ラベルはLTRでは入力の左側に、RTLでは右側に表示されます。"end":ラベルはLTRでは入力の右側、RTLでは左側に表示されます。"floating":"floating":ラベルは、入力にフォーカスが当たっているときや、入力に値があるときは小さく表示され、入力の上に表示されます。それ以外の場合は、入力の上に表示されます。"スタック(stacked)":入力がぼやけた状態や値がない場合でも、ラベルは小さく表示され、入力の上に表示されます。"fixed":ラベルの幅が固定される以外は、"start"`と同じ動作になります。長いテキストは省略記号("...")で切り捨てられます。 Attribute label-placementType "end" | "fixed" | "floating" | "stacked" | "start"Default 'start'
max Description 最大値で、その最小値(min属性)より小さくてはなりません。 Attribute maxType number | string | undefinedDefault undefined
maxlength Description type属性の値が text, email, search, password, tel, または url の場合、この属性はユーザーが入力できる最大文字数を指定します。 Attribute maxlengthType number | undefinedDefault undefined
min Description 最小値で、その最大値(max属性)より大きくてはなりません。 This is a virtual property that is set once during initialization and will not update if you change its value after the initial render. Attribute minType number | string | undefinedDefault undefined
minlength Description type属性の値が text, email, search, password, tel, または url の場合、この属性はユーザーが入力できる最小文字数を指定します。 Attribute minlengthType number | undefinedDefault undefined
mode Description modeは、どのプラットフォームのスタイルを使用するかを決定します。 This is a virtual property that is set once during initialization and will not update if you change its value after the initial render. Attribute modeType "ios" | "md"Default undefined
multiple Description trueの場合、ユーザは複数の値を入力することができる。この属性は、type属性が "email" に設定されている場合に適用され、それ以外の場合は無視される。Attribute multipleType boolean | undefinedDefault undefined
name Description フォームデータとともに送信されるコントロールの名前。 Attribute nameType stringDefault this.inputId
pattern Description 値をチェックするための正規表現。パターンは、部分的なものだけでなく、値全体にマッチする必要があります。title 属性を使って、ユーザーを助けるためにパターンを説明します。この属性は、type属性の値が "text", "search", "tel", "url", "email", "date", または "password" であるときに適用され、それ以外のときは無視されます。type 属性が "date" の場合、pattern は "date" Inputタイプをネイティブにサポートしないブラウザでのみ使用されます。詳しくは https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date を参照してください。 Attribute patternType string | undefinedDefault undefined
placeholder Description Inputが値を持つ前に表示される指示テキスト。このプロパティは、typeプロパティが "email", "number", "password", "search", "tel", "text", または "url" に設定されている場合にのみ適用され、それ以外は無視されます。 Attribute placeholderType string | undefinedDefault undefined
readonly Description trueの場合、ユーザーは値を変更することができません。Attribute readonlyType booleanDefault false
required Description trueの場合、ユーザーはフォームを送信する前に値を入力する必要があります。Attribute requiredType booleanDefault false
shape Description 入力の形状を指定します。"round"の場合、境界線の半径が大きくなります。 Attribute shapeType "round" | undefinedDefault undefined
spellcheck Description trueの場合、その要素のスペルチェックと文法チェックが行われる。Attribute spellcheckType booleanDefault false
step Description min属性、max属性と連携して、値を設定する際の増分を制限することができます。設定可能な値は以下の通りです。"any"または正の浮動小数点数。 Attribute stepType string | undefinedDefault undefined
type Description 表示するコントロールの種類を指定します。デフォルトのタイプはテキストです。 Attribute typeType "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week"Default 'text'
value Description 入力された値です。 Attribute valueType null | number | string | undefinedDefault ''
イベント Name Description Bubbles ionBlurInputのフォーカスが外れたときに発行されます。 trueionChangeionChange イベントは、ユーザが入力値を変更したときに発生する。ionInput イベントとは異なり、ionChange イベントは変更がコミットされたときにのみ発生する。 ユーザが明示的に変更をコミットしたとき (例えば、<ion-input type="date"> の日付ピッカーから日付を選択したり、"Enter" キーを押したりしたときなど)。- 値が変更された後、要素がフォーカスを失ったとき。 このイベントは、プログラムで value プロパティを設定する場合には発生しません。trueionFocusInputにフォーカスが当たったときに発行されます。 trueionInputionInput イベントは、ユーザが入力値を変更するたびに発生する。ionChange イベントとは異なり、 ionInput イベントは入力値が変更されるたびに発生する。これは通常、ユーザが入力を行うたびに発生します。 テキスト入力を受け付ける要素(type=text, type=telなど)の場合、インターフェイスはInputEvent となります。その他の要素の場合、インターフェイスはEvent となります。編集時に入力がクリアされる場合、型は null となる。true
メソッド Description 要素の内部で使用されているネイティブの <input> 要素を返します。 Signature getInputElement() => Promise<HTMLInputElement>
setFocus Description ion-input のネイティブ input にフォーカスを設定する。グローバルな input.focus() の代わりにこのメソッドを使用する。 ページ入力時に入力にフォーカスを当てたい場合は、 ionViewDidEnter() ライフサイクルメソッド内で setFocus() を呼び出す必要がある。 オーバーレイが表示されたときに入力にフォーカスを当てたい開発者は、 didPresent が解決した後に setFocus を呼び出してください。 詳細については、managing focus を参照してください。Signature setFocus() => Promise<void>
CSS Shadow Parts No CSS shadow parts available for this component.
CSSカスタムプロパティ iOS MD
Name Description --backgroundInputの背景 --border-colorヘルパーテキスト、エラーテキスト、カウンターを使用する場合のInput下のボーダーの色 --border-radius入力の半径。fill="outline "を使う場合、半径が大きいと表示が不 均一になることがある。 --border-styleヘルパーテキスト、エラーテキスト、カウンターを使用する場合の入力下のボーダーのスタイル --border-widthヘルパーテキスト、エラーテキスト、カウンターを使用する場合の入力下のボーダーの幅 --colorInputのテキストの色 --highlight-color-focusedフォーカスされたときの入力のハイライトの色 --highlight-color-invalid入力が無効な場合のハイライトの色 --highlight-color-valid有効時の入力のハイライトの色 --highlight-height入力のハイライトの高さ。mdモードにのみ適用される。 --padding-bottomInputのBottom Padding --padding-end入力の方向が左から右の場合はRight Padding、右から左の場合はLeft Paddingとなります。 --padding-start入力の方向が左から右の場合はLeft Padding、右から左の場合はRight Paddingとなります。 --padding-topInputのTop Padding --placeholder-colorInputのPlaceholderテキストの色 --placeholder-font-styleInputのPlaceholderテキストのFont Style --placeholder-font-weightInputのPlaceholderテキストのFont Weight --placeholder-opacityInputのPlaceholderテキストの不透明度
Slots Name Description end入力の後端に表示する内容。(実験的) label入力に関連付けるラベルテキスト。labelPlacement`プロパティを使用すると、入力に対してラベルを配置する位置を制御することができる。ラベルをカスタム HTML でレンダリングする必要がある場合に使用します。(EXPERIMENTAL) start入力の最先端に表示するコンテンツ。(実験的)