-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sana Malik
committed
Jan 30, 2025
1 parent
c01680d
commit f57fc8a
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import {DateTime, LabeledValueBaseProps} from '@react-spectrum/labeledvalue/src/LabeledValue'; | ||
import {RangeValue} from '@react-types/shared'; | ||
import { ReactNode } from 'react'; | ||
|
||
// The doc generator is not smart enough to handle the real types for LabeledValue so this is a simpler one. | ||
export interface LabeledValueProps extends LabeledValueBaseProps { | ||
/** The value to display. */ | ||
value: string | string[] | number | RangeValue<number> | DateTime | RangeValue<DateTime>, | ||
value: string | string[] | number | RangeValue<number> | DateTime | RangeValue<DateTime> | ReactNode, | ||
/** Formatting options for the value. The available options depend on the type passed to the `value` prop. */ | ||
formatOptions?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.ListFormatOptions | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters