# StyledElementProps

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

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

```rust
trait StyledElementProps: ElementBuilder
```

The properties and routed events of `StyledElement`.

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

## Members

- [`data_context`](#function-data_context)
- [`theme`](#function-theme)
- [`actual_theme_variant`](#function-actual_theme_variant)
- [`requested_theme_variant`](#function-requested_theme_variant)

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

### data_context

```rust
fn data_context<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `StyledElement::data_context_property`.

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

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

### theme

```rust
fn theme<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::styling::ControlTheme>>, M>) -> Self
```

Sets `StyledElement::theme_property`.

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

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

### actual_theme_variant

```rust
fn actual_theme_variant<M>(self: Self, value: impl IntoProp<Option<ferroui_base::styling::ThemeVariant>, M>) -> Self
```

Sets `ThemeVariant::actual_theme_variant_property`.

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

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

### requested_theme_variant

```rust
fn requested_theme_variant<M>(self: Self, value: impl IntoProp<Option<ferroui_base::styling::ThemeVariant>, M>) -> Self
```

Sets `ThemeVariant::requested_theme_variant_property`.

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

## Trait implementations

- [`StyledElementProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-styledelementprops/)

## Availability

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