App development
Create an app
Create a support ticket
Search…
Overview
Quick start
Changelog
Platform concepts
Apps
Extensions
Regions
Authentication
Deprecation policy
Extensions
Content extensions
Editing extensions
Publish extensions
Frontend development
Assets
Development URL
Error handling
Localization
Notifications
Rich controls
Button
Checkbox
ColorPicker
Group
Paragraph
RadioGroup
Select
Slider
TextInput
ThumbnailList
JSX
WebGL
Backend development
Base URL
Continuation
Signature verification
SDKs
Distribution
UX guidelines
Submission checklist
Creating the App Directory listing
Client API
EditingExtensionClient.API
CanvaDataType
CanvaElement
CanvaElementLayout
CanvaImageBlob
CanvaImageHelpers
CanvaImageUrl
CanvaMedia
init
Server API
Overview
GET /apps/configured
POST /configuration
POST /configuration/delete
POST /content/resources/find
POST /editing/image/process
POST /editing/image/process/get
POST /publish/resources/find
POST /publish/resources/get
POST /publish/resources/upload
Redirect URL
Reference
Locales
Powered By
GitBook
Paragraph
API reference for the "Paragraph" control.
Renders a paragraph within the Canva UI.
To learn how controls work, refer to
Rich controls
.
For guidelines on making the most of rich controls, see
Use rich controls (with some restraint)
.
Usage
1
canva
.
create
(
"paragraph"
,
{
2
id
:
"paragraphExample"
,
3
text
:
"This is a paragraph."
,
4
});
Copied!
Parameters
Name
Type
Required
Description
controlType
string
Yes
The type of control. To create a paragraph, the value must be
"paragraph"
.
opts
object
Yes
Properties for configuring the control.
opts.id
string
Yes
A unique ID for the control.
opts.text
string
Yes
The text that appears in the paragraph. You can't use the character in this property.
Event
This control does not emit an event.
Example
1
const
canva
=
window
.
canva
.
init
();
2
​
3
canva
.
onReady
(()
=>
{
4
renderControls
();
5
});
6
​
7
function
renderControls
()
{
8
const
controls
=
[
9
canva
.
create
(
"paragraph"
,
{
10
id
:
"paragraphExample"
,
11
text
:
"This is a paragraph."
,
12
}),
13
];
14
​
15
canva
.
updateControlPanel
(
controls
);
16
}
Copied!
Previous
Group
Next
RadioGroup
Last modified
1mo ago
Copy link
Contents
Usage
Parameters
Event
Example