Text API Overview
Initialization
<script>
import { Text } from "@wx/svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Text />
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Text Properties
css | sets the position of the icon in an input |
disabled | defines whether the Text control is disabled |
error | defines whether error styling is applied to the Text control |
focus | sets focus in an input |
icon | adds an icon into an input |
id | sets an HTML id for a text input |
inputstyle | applies a custom style to an input field |
placeholder | sets a placeholder for an input |
readonly | defines whether an input is read-only |
select | selects the content of an input |
title | sets a tooltip text with additional info about the Text control |
type | sets the type of the Text control |
value | sets the value of an input |
Text Events
input | fires on change of the value of an input, i.e. on the HTML input event |