Skip to main content

horizontal_divider

Function horizontal_divider 

Source
pub fn horizontal_divider() -> HorizontalDividerBuilder
Expand description

§horizontal_divider

Renders a horizontal divider line that fills the available width.

§Usage

Separate list groups or content sections within a screen.

§Parameters

  • modifier — sizing, insets, placement, and semantics.
  • thickness — optional line thickness; zero draws one physical pixel, and negative values resolve to zero. Non-finite values use the default.
  • color — optional line color override.

§Examples

use tessera_components::divider::horizontal_divider;
use tessera_ui::{Color, Dp};

horizontal_divider().thickness(Dp::ZERO).color(Color::BLACK);