Sanity Library Reference Docs
    Preparing search index...

    Interface UseFormattedDurationOptions

    Options for the duration formatter

    interface UseFormattedDurationOptions {
        resolution?: "seconds" | "milliseconds";
        style?: "short" | "long" | "narrow";
    }
    Index

    Properties

    Properties

    resolution?: "seconds" | "milliseconds"

    The resolution of the duration. The default is "seconds".

    style?: "short" | "long" | "narrow"

    The formatting style to use in unit and list formatting. The default is "short".