Validation

import arakawa as ar
2025-04-15 01:39:14.289 | WARNING  | arakawa.optional_libs:_check_version:22 - Plotly version 6.0.1 is not supported, these plots may not display correctly, please install version ~=5.24

Control blocks are powered by Formkit and most of blocks can have a string style validation.

ar.TextBox("text", validation="number|between:20,50", help="Enter a number between 20 and 50")

required is using the Formkit validation under the hood and validation will be combined with it.

ar.TextBox("text", required=True, validation="number|between:20,50", help="Enter a number between 20 and 50")

Info

The above input has required|number|between:20,50 validation.