Skip to content

Commit a166aaa

Browse files
authored
feat(RAC): Expose useRenderProps hook (#8013)
* feat(RAC): Expose `useRenderProps` hook * expose render prop types * expose StyleRenderProps props
1 parent 1e93060 commit a166aaa

File tree

1 file changed

+2
-2
lines changed
  • packages/react-aria-components/src

1 file changed

+2
-2
lines changed

packages/react-aria-components/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export {ColorSwatchPicker, ColorSwatchPickerItem, ColorSwatchPickerContext} from
3030
export {ColorThumb} from './ColorThumb';
3131
export {ColorWheel, ColorWheelTrack, ColorWheelTrackContext, ColorWheelStateContext} from './ColorWheel';
3232
export {ComboBox, ComboBoxContext, ComboBoxStateContext} from './ComboBox';
33-
export {composeRenderProps, DEFAULT_SLOT, Provider, useContextProps, useSlottedContext} from './utils';
33+
export {composeRenderProps, DEFAULT_SLOT, Provider, useContextProps, useRenderProps, useSlottedContext} from './utils';
3434
export {DateField, DateInput, DateSegment, TimeField, DateFieldContext, TimeFieldContext, DateFieldStateContext, TimeFieldStateContext} from './DateField';
3535
export {DatePicker, DateRangePicker, DatePickerContext, DateRangePickerContext, DatePickerStateContext, DateRangePickerStateContext} from './DatePicker';
3636
export {DialogTrigger, Dialog, DialogContext, OverlayTriggerStateContext} from './Dialog';
@@ -141,7 +141,7 @@ export type {TooltipProps, TooltipRenderProps, TooltipTriggerComponentProps} fro
141141
export type {TreeProps, TreeRenderProps, TreeItemProps, TreeItemRenderProps, TreeItemContentProps, TreeItemContentRenderProps} from './Tree';
142142
export type {DragAndDropHooks, DragAndDropOptions} from './useDragAndDrop';
143143
export type {DropIndicatorProps, DropIndicatorRenderProps} from './DragAndDrop';
144-
export type {ContextValue, SlotProps} from './utils';
144+
export type {ContextValue, RenderProps, SlotProps, StyleRenderProps} from './utils';
145145
export type {VirtualizerProps} from './Virtualizer';
146146

147147
export type {DateValue, DateRange, TimeValue} from 'react-aria';

0 commit comments

Comments
 (0)