Function freya::components::Tile

source ·
pub fn Tile(_: TileProps) -> Result<VNode, RenderError>
Expand description

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

§Styling

Inherits the TileTheme theme.

§Example

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

§Props

For details, see the props struct definition.

  • children : Element

    Inner children for the Tile.

  • 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.