Function freya::prelude::Tile

source ·
pub fn Tile(__props: TileProps) -> Option<VNode>
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.

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