Docs for filled input
parent
493a0c303c
commit
78a97d9a39
|
@ -44,6 +44,21 @@ import InputText from 'primevue/inputtext';
|
|||
<InputText type="text" class="p-inputtext-sm" placeholder="Small" />
|
||||
<InputText type="text" placeholder="Normal" />
|
||||
<InputText type="text" class="p-inputtext-lg" placeholder="Large" />
|
||||
</CodeHighlight>
|
||||
|
||||
<h5>Outlined vs Filled</h5>
|
||||
<p>Input fields come in two styles, default is <i>outlined</i> with borders around the field whereas <i>filled</i> alternative adds a background color
|
||||
to the field. Appling <i>p-input-filled</i> to an element or wrapping the container with <i>p-input-filled</i> enables the filled style. If you prefer
|
||||
to use filled inputs in the entire application, use a global container such as document body or the application container to apply the style class.</p>
|
||||
|
||||
<CodeHighlight>
|
||||
<InputText type="text" class="p-input-filled" />
|
||||
</CodeHighlight>
|
||||
|
||||
<CodeHighlight>
|
||||
<div class="p-input-filled">
|
||||
<InputText type="text" />
|
||||
</div>
|
||||
</CodeHighlight>
|
||||
|
||||
<h5>Properties</h5>
|
||||
|
@ -74,6 +89,10 @@ import InputText from 'primevue/inputtext';
|
|||
<tr>
|
||||
<td>p-inputtext-lg</td>
|
||||
<td>Larger input element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-inputtext-filled</td>
|
||||
<td>Filled input style.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue