Try Install Learn Blog API Packages GitHub
Pages

Ui.Example

A component to display and example, controls and source code of a component.

States

mobile
:
Bool
=
false

Properties

breakpoint
:
Number
=
1000

Controls when to use a one column layout.

controls
:
Html
=
<></>

The controls.

data
:
Tuple(Html, String)

The example and it's source code to display.

fill
:
Bool
=
false

Wether or not the example fills the demo area.

highlight
:
Function(String, Html)
=
(code : String) { <{ code }> }

Highlights the given code (converts it to Html).

Controls the horizontal spacing between the elements.

size
:
Number
=
16

The size of the component.

verticalSpacing
:
Number
=
0

Controls the vertical spacing between the elements.

Functions

render
:
Html

Renders the component.