Ecme logoEcme logo
    Ecommerce
    Project
    Marketing
    Analytic
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Asset Management
      Asset
      Asset Category
      Manufacturer
      Model
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
    Access Denied
    Landing
    Documentation
    Shared Component
    Utilities
    Changelog
Anonymous
No email available
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy
Components
AbbreviateNumberActionLinkAdaptiveCardAffixAuthorityCheckCalendarViewChartConfirmDialogContainerCustomFormatInputDataTableDebounceInputDoubleSidedImageEllipsisButtonGanttChartGrowShrinkValueIconTextImageGalleryLoadingMasonryMediaSkeletonNavToggleNumericInputOtpInputPasswordInputPatternInputRegionMapRichTextEditorSegmentItemOptionStickyFooterSyntaxHighlighterUsersAvatarGroup

FormCustomFormatInput

FormCustomFormatInput wrapped Input component with react-number-format.

Simple

Basic usage of FormCustomFormatInput, all react-number-format props can be apply to this component as well.

WithForm

Example usage with React Hook Form

API

FormCustomFormatInput
PropDescriptionTypeDefault
inputPrefixRender a prefix content inside Inputstring | ReactNode-
inputSuffixRender a suffix content inside Inputstring | ReactNode-
formatA format function which can turn any numeric string to a formatted string.(value: string) => string-
removeFormattingA function to removing formatting from a formatted string and return numeric string.(value: string) => string-
getCaretBoundaryA function given a formatted string, returns boundaries of valid cursor position. basically an array of boolean, where index of specify caret position. true at a index signifies user can put their caret at the position, false means the caret position is not allowed and the caret will move to closet allowed position.(formattedValue: string) => boolean[]-
isValidInputCharacterA function to tell if a character in the formatted value is a valid typeable character. You don't need to pass it most of the time, as it defaults numeric characters (0-9). But case like additional character is allowed to type, for example decimal separator in currency format.(character: string) => boolean-

Dependencies

React number format

All common React number format props can be applied on this component, refer official docs for the complete this.props.first list.

TABLE OF CONTENT
  • Simple
  • WithForm