Wraps html text with some preset style options in a configurable tag container.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
| |||||||||||||||||||||||||||||||||
ref | object | | Ref to the component. |
- Since
- 1.1.15
- Source
Returns:
The text component.
- Type:
- JSX.
Element
Example
import Text from '@gravityforms/components/react/admin/elements/Text';
return <Text content="Hello world" />;