Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.41 KB

text.md

File metadata and controls

49 lines (33 loc) · 1.41 KB
title
ion-text

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

<title>ion-text: Ionic App Component to Style or Change Text Color</title>

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

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/v8/text/basic/index.md';

Theming

The text component can be customized by changing any of the default colors Ionic provides.

Properties

Events

Methods

CSS Shadow Parts

CSS Custom Properties

Slots