♻️ (bootsier): Ajusta componentes base

- Añade `#[builder_fn]` a `with_width()`/`with_floating_label()`.
- `Rounded::new()` pasa a aplicar el radio por defecto
  (`Rounded::default()` queda sin redondeo).
- `Form::action` usa `Route` en lugar de `AttrValue`, y `check::Item`
  expone `value` en vez de `name` para generar casillas con `name`
  compartido valores distintos.
This commit is contained in:
Manuel Cillero 2026-08-01 13:41:19 +02:00
parent 4cc72aac0e
commit 545a87fbb0
9 changed files with 118 additions and 111 deletions

View file

@ -31,12 +31,15 @@ pub trait TextareaBootsier {
///
/// Si se usa la etiqueta flotante, se anula el valor establecido con
/// [`with_rows()`](form::Textarea::with_rows) antes del renderizado.
#[builder_fn]
fn with_floating_label(self, floating: bool) -> Self;
}
impl TextareaBootsier for Textarea {
fn with_floating_label(self, floating: bool) -> Self {
self.with_prop(PropsOp::set_extra(EXTRA_FLOATING_LABEL, floating))
#[builder_fn]
fn with_floating_label(mut self, floating: bool) -> Self {
self.alter_prop(PropsOp::set_extra(EXTRA_FLOATING_LABEL, floating));
self
}
}