Files
starface-outlook-sync-addin/node_modules/@fluentui/foundation-legacy/lib-commonjs/IHTMLSlots.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

16 lines
902 B
TypeScript

import * as React from 'react';
import type { JSXIntrinsicElement, JSXIntrinsicElementKeys } from '@fluentui/utilities';
import { ISlotProp } from './ISlots';
/**
* Generic slot definition allowing common HTML attributes. Applicable for most intrinsic slots. Please note certain
* elements such as buttons and inputs should make use of IHTMLElementSlot to provide access to specialized attributes
* of those elements.
*/
export type IHTMLSlot = ISlotProp<React.DetailedHTMLProps<React.HTMLAttributes<any>, any>>;
/**
* Optional HTML element typing to confine or expand HTML attribute usage for an intrinsic slot.
* Useful for slots that need to allow access to specialized HTML attributes, such as for buttons and inputs.
* Example usage: root?: IHTMLElementSlot\<'button'\>;
*/
export type IHTMLElementSlot<TElement extends JSXIntrinsicElementKeys> = ISlotProp<JSXIntrinsicElement<TElement>>;