Beautiful Titles

Creates text in two levels to comment and separate themes.

WARNING avoid special symbols such as (, ), [, ] and similar in the texts of this component because it could break the look&feel

This component is used to highlight text.

The input variables are:

title: str
subtitle: str

Example of use:

s.plt.html(
    order=0,
    html=s.html_components.create_h1_title(
        title='Easy-to-use AI',
        subtitle='Build a model to predict outcomes!'
    )
)

It can be resized and positioned with the use of padding:

s.plt.html(
    order=1, 
    cols_size=4,
    padding='0,0,0,8',
    html=s.html_components.create_h1_title(
        title='Easy-to-use AI',
        subtitle='Build a model to predict probabilities!'
    )
)

More on how to use the Grid.

Video demonstration

Last updated