diff --git a/content/docs/form/_index.md b/content/docs/form/_index.md index 7e0621c..7ae565c 100644 --- a/content/docs/form/_index.md +++ b/content/docs/form/_index.md @@ -25,21 +25,12 @@ type Person struct { ```golang myForm := form.NewForm( form.NewFieldText("Name"). - WithOptions( - form.NewOption("label", "Person"), - form.NewOption("required", true), - ). WithConstraints( validation.NewNotBlank(), ), form.NewFieldNumber("Age"). - WithOptions( - form.NewOption("label", "Age"), - form.NewOption("required", true), - ). WithConstraints( validation.NewNotBlank(), - validation.New(), validation.NewRange().WithMin(18), ), ).End()