Skip to main content

Float field

  • Data type: number
  • JSON Schema data type: float

The integer field manages float data.

Example

import React from "react";
import { createForm, floatField, StatefulFormView } from "@fab4m/fab4m";
import "@fab4m/fab4m/css/basic/basic.css";

const form = createForm({
name: floatField({
label: "Enter a floating point number",
required: true,
}),
});

export default function floatFieldExample() {
return <StatefulFormView form={form} hideSubmit={true} />;
}

Available Widgets