All style and behaviour properties are passed as keyword arguments to element functions.
pn.Text(text, font_size=None, color=None, bold=False, text_align=None,
background_color=None, max_lines=None)text— display stringfont_size— size in sp (Android) / pt (iOS)color— text colour (#RRGGBBor#AARRGGBB)bold— bold weighttext_align—"left","center", or"right"background_color— view backgroundmax_lines— limit visible lines
pn.Button(title, on_click=None, color=None, background_color=None,
font_size=None, enabled=True)title— button labelon_click— callback() -> Nonecolor— title text colourbackground_color— button backgroundenabled— interactive state
pn.Column(*children, spacing=0, padding=None, alignment=None, background_color=None)
pn.Row(*children, spacing=0, padding=None, alignment=None, background_color=None)spacing— gap between children (dp / pt)padding— inner padding (int for all sides, or dict withhorizontal,vertical,left,top,right,bottom)alignment— cross-axis:"fill","center","leading","trailing","start","end","top","bottom"background_color— container background
pn.ScrollView(child, background_color=None)pn.TextInput(value="", placeholder="", on_change=None, secure=False,
font_size=None, color=None, background_color=None)on_change— callback(str) -> Nonereceiving new text
pn.Image(source="", width=None, height=None, scale_type=None, background_color=None)pn.Switch(value=False, on_change=None)on_change— callback(bool) -> None
pn.ProgressBar(value=0.0, background_color=None)value— 0.0 to 1.0
pn.ActivityIndicator(animating=True)pn.WebView(url="")pn.Spacer(size=None)size— fixed dimension in dp / pt