UNPKG
@rc-component/trigger
Version:
latest (3.2.0)
3.2.0
3.1.0
3.0.0
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.0
2.0.0-0
1.18.3
1.18.2
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.1
1.16.0
1.15.6
1.15.5
1.15.4
1.15.3
1.15.2
1.15.1
1.15.0
1.14.4
1.14.3
1.14.2
1.14.1
1.14.0
1.13.6
1.13.5
1.13.4
1.13.4-0
1.13.3
1.13.2
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.2
1.10.1
1.10.0
1.9.0
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
base abstract trigger component for react
github.com/react-component/trigger
react-component/trigger
@rc-component/trigger
/
es
/
hooks
/
useAction.d.ts
5 lines
(4 loc)
•
290 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
ActionType
}
from
'../interface'
;
type
ActionTypes
=
ActionType
|
ActionType
[];
export
default
function
useAction
(
mobile
:
boolean
,
action
:
ActionTypes
,
showAction
?:
ActionTypes
,
hideAction
?:
ActionTypes
): [
showAction
:
Set
<
ActionType
>,
hideAction
:
Set
<
ActionType
>];
export
{};