@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
26 lines (25 loc) • 1.24 kB
TypeScript
import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js";
import { Component } from "../../core/components/index.types.js";
import "../../core/index.js";
import { IconButtonStyle } from "./icon-button.style.js";
import { ButtonProps } from "./button.js";
import "../../index.js";
import * as react27 from "react";
import { ReactNode } from "react";
//#region src/components/button/icon-button.d.ts
interface IconButtonProps extends Omit<WithoutThemeProps<ButtonProps, IconButtonStyle>, "endIcon" | "iconProps" | "loadingIcon" | "loadingMessage" | "loadingPlacement" | "loadingProps" | "startIcon">, ThemeProps<IconButtonStyle> {
/**
* The icon to be used in the button.
*/
icon?: ReactNode;
}
declare const IconButtonPropsContext: react27.Context<Partial<IconButtonProps> | undefined>, useIconButtonPropsContext: () => Partial<IconButtonProps> | undefined;
/**
* `IconButton` is a component that displays an icon within a button.
*
* @see https://yamada-ui.com/docs/components/icon-button
*/
declare const IconButton: Component<"button", IconButtonProps>;
//#endregion
export { IconButton, IconButtonProps, IconButtonPropsContext, useIconButtonPropsContext };
//# sourceMappingURL=icon-button.d.ts.map