๐Ÿ“ฆ ionic-team / ionic-docs

๐Ÿ“„ text.md ยท 59 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59---
title: 'ion-text'
---

import Props from '@ionic-internal/component-api/v7/text/props.md';
import Events from '@ionic-internal/component-api/v7/text/events.md';
import Methods from '@ionic-internal/component-api/v7/text/methods.md';
import Parts from '@ionic-internal/component-api/v7/text/parts.md';
import CustomProps from '@ionic-internal/component-api/v7/text/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v7/text/slots.md';

<head>
  <title>ion-text: Ionic App Component to Style or Change Text Color</title>
  <meta
    name="description"
    content="ion-text is a simple app component that can be used to style the text color of any element. Learn how ion-text wraps elements in order to change the text color."
  />
</head>

import EncapsulationPill from '@components/page/api/EncapsulationPill';

<EncapsulationPill type="shadow" />

The text component is a simple component that can be used to style the text color of any element. The `ion-text` element should wrap the element in order to change the text color of that element.

## Basic Usage

import Basic from '@site/static/usage/v7/text/basic/index.md';

<Basic />

## Theming

The text component can be customized by changing any of the default [colors](../../docs/theming/colors) Ionic provides.

## Properties

<Props />

## Events

<Events />

## Methods

<Methods />

## CSS Shadow Parts

<Parts />

## CSS Custom Properties

<CustomProps />

## Slots

<Slots />