ion-label
Label is an element used primarily to add text content to Item components. Label can also be used inside of form control components such as Input or Radio when specifying the visible label, but it is not required.
The position of the label inside of an item can be inline, fixed, stacked, or floating.
Basic Usageβ
Item Labelsβ
Themingβ
Colorsβ
Propertiesβ
colorβ
| Description | The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming. |
| Attribute | color |
| Type | "danger" ο½ "dark" ο½ "light" ο½ "medium" ο½ "primary" ο½ "secondary" ο½ "success" ο½ "tertiary" ο½ "warning" ο½ string ο½ undefined |
| Default | undefined |
modeβ
| Description | The mode determines which platform styles to use. 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 | mode |
| Type | "ios" ο½ "md" |
| Default | undefined |
positionβ
| Description | The position determines where and how the label behaves inside an item. |
| Attribute | position |
| Type | "fixed" ο½ "floating" ο½ "stacked" ο½ undefined |
| Default | undefined |
Eventsβ
No events available for this component.
Methodsβ
No public methods available for this component.
CSS Shadow Partsβ
No CSS shadow parts available for this component.
CSS Custom Propertiesβ
- iOS
- MD
| Name | Description |
|---|---|
--color | Color of the label. This property is only available when using ion-label inside of an ion-item. |
| Name | Description |
|---|---|
--color | Color of the label. This property is only available when using ion-label inside of an ion-item. |
Slotsβ
No slots available for this component.