# BlockProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-blockprops/

**trait** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
trait BlockProps: ElementBuilder
```

The properties and routed events of `Block`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2446)

## Members

- [`text_alignment`](#function-text_alignment)
- [`line_height`](#function-line_height)
- [`line_stacking_strategy`](#function-line_stacking_strategy)
- [`margin`](#function-margin)
- [`flow_direction`](#function-flow_direction)

<a id="function-text_alignment"></a>

### text_alignment

```rust
fn text_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextAlignment, M>) -> Self
```

Sets `Block::text_alignment_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2448)

<a id="function-line_height"></a>

### line_height

```rust
fn line_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Block::line_height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2453)

<a id="function-line_stacking_strategy"></a>

### line_stacking_strategy

```rust
fn line_stacking_strategy<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::LineStackingStrategy, M>) -> Self
```

Sets `Block::line_stacking_strategy_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2458)

<a id="function-margin"></a>

### margin

```rust
fn margin<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
```

Sets `Block::margin_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2463)

<a id="function-flow_direction"></a>

### flow_direction

```rust
fn flow_direction<M>(self: Self, value: impl IntoProp<ferroui_base::media::FlowDirection, M>) -> Self
```

Sets `Block::flow_direction_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2468)

## Trait implementations

- [`BlockProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-blockprops/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
