reykit 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Toggle.d.ts +17 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2981 -2935
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode, ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Toggle component of with icon.
|
|
4
|
+
*
|
|
5
|
+
* @param openIcon - Open icon.
|
|
6
|
+
* @param closeIcon - Close icon.
|
|
7
|
+
* @param handleOpen - Handle open.
|
|
8
|
+
* @param defaultOpen - Default open state.
|
|
9
|
+
* @param rotate - Whether rotate icon.
|
|
10
|
+
*/
|
|
11
|
+
export declare function IconToggle({ openIcon, closeIcon, handleOpen, defaultOpen, rotate, className, onClick, ...props }: {
|
|
12
|
+
openIcon: ReactNode;
|
|
13
|
+
closeIcon: ReactNode;
|
|
14
|
+
handleOpen: (open: boolean) => void;
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
rotate?: boolean;
|
|
17
|
+
} & ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|