@wordpress/components
Version:
UI components for WordPress.
27 lines • 1.38 kB
TypeScript
import Fill from './fill';
import type { WordPressComponentProps } from '../context';
export { default as useSlot } from './bubbles-virtually/use-slot';
export { default as useSlotFills } from './bubbles-virtually/use-slot-fills';
import type { DistributiveOmit, FillComponentProps, SlotComponentProps, SlotFillProviderProps, SlotKey } from './types';
export { Fill };
/**
* `Slot` marks a location where content rendered by matching `Fill` components
* elsewhere will appear. Use it to allow a component to define UI areas that
* can be extended from other parts of the application.
*/
export declare const Slot: import("react").ForwardRefExoticComponent<(SlotComponentProps & Omit<WordPressComponentProps<{}, "div">, "className">) & import("react").RefAttributes<any>>;
export declare function Provider({ children, passthrough, }: SlotFillProviderProps): import("react").JSX.Element;
export declare namespace Provider {
var displayName: string;
}
export declare function createSlotFill(key: SlotKey): {
name: SlotKey;
Fill: {
(props: Omit<FillComponentProps, 'name'>): import("react").JSX.Element;
displayName: string;
};
Slot: import("react").ForwardRefExoticComponent<DistributiveOmit<SlotComponentProps, "name"> & import("react").RefAttributes<any>> & {
__unstableName: SlotKey;
};
};
//# sourceMappingURL=index.d.ts.map