Function freya_components::Tile

source ·
pub fn Tile(__props: TileProps) -> Element
Expand description

Tile component to be used with [Radio] and [Checkbox].


Inherits the TileTheme theme.


Tile is meant to be used with other components, take a look at Radio for instance.


For details, see the props struct definition.

  • leading : Option<Element>

    Optional element to be placed before the inner children of the Tile. Such as a Radio

  • onselect : Option<EventHandler<()>>

    Event handler for when the Tile is selected, e.g when clicking on it.

  • theme : Option<TileThemeWith>

    Theme override.