VCS Text component
Renders the provided text, which can optionally overflow onto multiple lines. Similar to a
<p> element in HTML.
Text components typically have a
layout prop provided to define how the text looks and where it should be placed within the parent layout container.
VCS doesn’t have a style inheritance cascade like in CSS, so if you don’t pass the style prop, your text will get global default styling.
Properties specific to the
|An object defining transformations to be applied at the compositing stage. Supported properties: |
|An object of compositing-related properties. Supported child properties: |
|Controls whether the box clips the rendering of its children within its own layout frame.|
Properties available to all VCS components, including this one.
|A name of your choice for the component instance. Works just like the “id” property in HTML. Primarily useful for debugging.|
|This prop has a special meaning to the React runtime. When you render components inside an array (e.g. a list), each individual item in the array should have a different value for the key prop. React uses this internally to quickly compare the rendered array with its previous version.|
|An object of style. Each component class has its own supported style properties. For example, the |
|Allows you to hook into your rendered components into the VCS layout system. After the React render cycle completes, the layout system computes final layout frames (coordinates within the output viewport). You can guide the layout process using callback functions and data you provide using the layout prop. The first value of the array must be a layout function. The second (optional) value can be a data object containing param values, which is passed to the layout function when computing the layout. See Layout API for more details.|
style prop accepts an object that can have the following values set.
|Color of text to be rendered. Valid CSS values are accepted.|
|Size of font in |
|Size of font in |
|Font family to render text in. Accepted values: |
|Font style to render text in. Accepted values: |
|Font weight to render text in. Accepted values: |
|Color of outline around text characters.|
|Stroke width in pixels of outline around text characters.|
- Hex color codes
- RGB or RGBA syntax
- Standard CSS color names (e.g.