Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
// import { Input } from '@fluentui/react-input';
import { Input } from '@fluentui/react-input';
import * as React from 'react';

export type SpinButtonSlots = {
Expand All @@ -18,6 +18,8 @@ export type SpinButtonSlots = {
*/
input: NonNullable<Slot<'input'>>;

inputExample: NonNullable<Slot<typeof Input>>;

/**
* Renders the increment control.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/react-utilities/src/compose/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type IntrisicElementProps<Type extends keyof JSX.IntrinsicElements> = React.Prop
* ```
*/
export type Slot<
Type extends keyof JSX.IntrinsicElements | React.ComponentType | UnknownSlotProps,
Type extends keyof JSX.IntrinsicElements | React.ComponentType | React.VoidFunctionComponent | UnknownSlotProps,
AlternateAs extends keyof JSX.IntrinsicElements = never
> = IsSingleton<Extract<Type, string>> extends true
?
Expand Down