25 return [&model, ... attributes = std::forward<Attributes>(attributes)]<
typename... Children>(
26 Children&&... children)
mutable {
27 using Nui::Elements::input;
34 std::move(attributes)...,
38 [&model](
auto const& event) {
39 model =
event[
"target"][
"value"].template as<std::string>();
41 }(std::forward<Children>(children)...);
constexpr auto TextInput(Observed< T > &model, Attributes &&... attributes)
This component can be used like this TextInput(attributes...)(children...) instead of the C{}() synta...
Definition text_input.hpp:23