Hooks
useFormat
A simple way to format data from Quill
App.tsx
The value of the thing being formatted.
format
'percent' |
'dollar_amount' |
'dollar_cents' |
'whole_number' |
'one_decimal_place' |
'two_decimal_places' |
'string' |
'yyyy' |
'MMM_yyyy' |
'MMM_dd_yyyy' |
'MMM_dd' |
'hh_ap_pm' |
'MMM_dd-MMM_dd' |
'MMM_dd_hh:mm_ap_pm' |
'wo, yyyy'
requiredThe Quill format type of how you want to format the value.