Paragraph
A paragraph text component.
Block
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Block Setup
id: block_id
type: Paragraph
properties:
content: >-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
Settings
Paragraph JSON Schema Definition
type: object
properties:
events:
additionalProperties: false
properties:
onCopy:
description: Trigger action when copy text is clicked.
type: array
onExpand:
description: Trigger action when ellipse expand is clicked.
type: array
type: object
properties:
additionalProperties: false
properties:
code:
default: false
description: Apply code style.
type: boolean
content:
description: Paragraph text content.
type: string
copyable:
default: false
description: Provide copy text button.
oneOf:
- type: boolean
- additionalProperties: false
properties:
icon:
description: >-
Copy icon, can be an array or two icons for before and after
clicked.
type:
- string
- object
- array
text:
description: Paragraph text to copy when clicked.
type: string
tooltips:
description: >-
Tooltip text, can be an array or two strings for before and
after clicked.
type:
- string
- array
type: object
delete:
default: false
description: Apply deleted (strikethrough) style.
type: boolean
disabled:
default: false
description: Apply disabled style.
type: boolean
ellipsis:
default: false
oneOf:
- description: Display ellipsis when text overflows a single line.
type: boolean
- additionalProperties: false
properties:
expandable:
description: Expand hidden content when clicked.
type: boolean
rows:
description: Max rows of content.
type: number
suffix:
description: Suffix of ellipses content.
type: string
type: object
mark:
default: false
description: Apply marked (highlighted) style.
type: boolean
strong:
default: false
description: Apply strong (bold) style.
type: boolean
type:
default: default
description: Additional types. Don't specify for default.
enum:
- secondary
- warning
- danger
type: string
underline:
default: false
description: Apply underline style.
type: boolean
type: object