cosmic::iced_widget

Function horizontal_rule

source
pub fn horizontal_rule<'a, Theme>(height: impl Into<Pixels>) -> Rule<'a, Theme>
where Theme: Catalog + 'a,
Expand description

Creates a horizontal Rule with the given height.

ยงExample

use iced::widget::horizontal_rule;

#[derive(Clone)]
enum Message {
    // ...,
}

fn view(state: &State) -> Element<'_, Message> {
    horizontal_rule(2).into()
}