Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

useBigIntInput

Keeps a controlled input value synchronized with a bigint representation while enforcing decimal precision rules, input validation, and an explicit error flag so conversions never throw.

Usage

import { useBigIntInput } from "@0xhq/beaut/react";
 
const { value, valueAsBigInt, handleInputChange, isError } = useBigIntInput(); 
<input value={value} onChange={handleInputChange} />

Example

Input:

Value:

Value as BigInt: 0

isError: false

Types

Parameters

import { UseBigIntInputParameters } from "@0xhq/beaut/react";

Return Type

import { UseBigIntInputReturnType } from "@0xhq/beaut/react";