Object

LinkButton

The component for opening a link in a button.

Properties

role
string
(Required)

Always link_button for this component.

accessibilityLabel
string

A string that is read to the user when certain accessibility functionalities are enabled.

anchor

An object that defines vertical alignment with another component.

animation
*

An object that defines an animation to be applied to the component.

To remove a previously set condition, use none.

behavior
*

An object that defines behavior for a component, like Parallax or Springy.

To remove a previously set condition, use none.

conditional
*

An instance or array of button properties that can be applied conditionally, and the conditions that cause them to be applied.

hidden
boolean

A Boolean value that determines whether the component is hidden.

identifier
string

A unique identifier for this component. If used, identifier must be unique across the entire document. An identifier is required if you want to anchor other components to this component.

layout
*

An inline ComponentLayout object that contains layout information, or a string reference to a ComponentLayout that is defined at the top level of the document.

If layout is not defined, size and position are based on various factors, such as the device type, the length of the content, and the role of this component.

style
*

An inline ComponentStyle object that defines the appearance of this component, or a string reference to a ComponentStyle that is defined at the top level of the document.

The none value is used for conditional design elements. Adding it here has no effect.

text
string

The text, styled according to the textStyle definition.

textStyle
*

An inline ComponentTextStyle object that contains styling information, or a string reference to a ComponentTextStyle object that is defined at the top level of the document.

(Required)

The URL to open when a user interacts with the range of text specified in the addition.

Discussion

Use the LinkButton component to display a button with a link. The link opens when the user interacts with the button. The LinkButton can be placed anywhere in the document and is styled using ComponentStyle and ComponentTextStyle properties.

Example

{ "components": [ { "role": "link_button", "URL": "http://apple.com", "text": "Read More", "style": { "backgroundColor": "#DDD", "mask": { "type": "corners", "radius": 25 } }, "layout": { "padding": 10 } } ]}

Relationships

Inherits From

See Also

Article Structure

Nesting Components in an Article

Use container components to create the component hierarchies you need for special article designs.

Adding a Scene to a Chapter or a Section Header

Add a scene to your article to create special effects.

Creating an Article Link

Link to an article by using the article-linking container component.

Displaying Components Side By Side

Configure a side-by-side, horizontal arrangement of components for your article.

object Header

The component for defining the top area of an article, chapter, or section.

object Container

Properties shared by all container types.

object Section

The component for organizing an article into sections.

object Chapter

The component for organizing an article into chapters.

object Aside

The component for setting apart content that is not directly related to the article, such as promotional content.

object CollectionDisplay

An object used in any container component type to define how the collection of child components is presented.

object HorizontalStackDisplay

The object for displaying components side by side in a Container component.

object FlexibleSpacer

The component for redistributing empty space inside a horizontal stack collection.

object Divider

The component for defining a horizontal line to visually divide parts of your article.

object ArticleLink

The container component for creating a link to an article.

type SupportedArticleIdentifier

The patterns supported for article identifiers in UUID format.

object ArticleTitle

The component for displaying an article title in the ArticleLink component.

object ArticleThumbnail

The component for displaying a thumbnail image with an article link.