Toloka documentation


toloka.client.project.template_builder.view.AlertViewV1 | Source code

    content: Optional[BaseComponent] = None,
    theme: Optional[Union[BaseComponent, Theme]] = None,
    hint: Optional[Any] = None,
    label: Optional[Any] = None,
    validation: Optional[BaseComponent] = None,
    version: Optional[str] = '1.0.0'

The component creates a color block to highlight important information.

You can use both plain text and other visual components inside it.

Parameters Description

Parameters Type Description
content Optional[BaseComponent]

Content of the block with important information.

theme Optional[Union[BaseComponent, Theme]]

Determines the block color.

hint Optional[Any]

Hint text.

label Optional[Any]

Label above the component.

validation Optional[BaseComponent]

Validation based on condition.