@surdeddd/bottom-sheet
GitHub
Breaking changes
Preparing search index...
react
UseBottomSheetReturn
Type Alias UseBottomSheetReturn<TId>
UseBottomSheetReturn
:
UseBottomSheetRefs
&
{
state
:
EngineState
&
{
activeId
:
TId
}
;
snapTo
:
(
id
:
TId
)
=>
Promise
<
void
>
;
open
:
(
id
?:
TId
)
=>
Promise
<
void
>
;
close
:
(
reason
?:
CloseReason
)
=>
Promise
<
void
>
;
expand
:
()
=>
Promise
<
void
>
;
collapse
:
()
=>
Promise
<
void
>
;
isTop
:
()
=>
boolean
;
depth
:
()
=>
number
;
setAllowed
:
(
ids
:
TId
[]
,
snap
?:
TId
)
=>
void
;
addAnchor
:
(
opts
:
AnchorOptions
)
=>
()
=>
void
;
setScrimStages
:
(
opts
:
ScrimStagesOptions
|
null
)
=>
()
=>
void
;
recompute
:
()
=>
void
;
getEngine
:
()
=>
BottomSheetEngine
|
null
;
}
Type Parameters
TId
extends
string
=
string
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
GitHub
Breaking changes
@surdeddd/bottom-sheet
Loading...