Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123477981
Stack.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 27, 17:10
Size
906 B
Mime Type
text/x-java
Expires
Tue, Jul 29, 17:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27705141
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Stack.js
View Options
import
classNames
from
'classnames'
;
import
*
as
React
from
'react'
;
import
{
useBootstrapPrefix
,
useBootstrapBreakpoints
,
useBootstrapMinBreakpoint
}
from
'./ThemeProvider'
;
import
createUtilityClassName
,
{
responsivePropType
}
from
'./createUtilityClasses'
;
import
{
jsx
as
_jsx
}
from
"react/jsx-runtime"
;
const
Stack
=
/*#__PURE__*/
React
.
forwardRef
(({
as
:
Component
=
'div'
,
bsPrefix
,
className
,
direction
,
gap
,
...
props
},
ref
)
=>
{
bsPrefix
=
useBootstrapPrefix
(
bsPrefix
,
direction
===
'horizontal'
?
'hstack'
:
'vstack'
);
const
breakpoints
=
useBootstrapBreakpoints
();
const
minBreakpoint
=
useBootstrapMinBreakpoint
();
return
/*#__PURE__*/
_jsx
(
Component
,
{
...
props
,
ref
:
ref
,
className
:
classNames
(
className
,
bsPrefix
,
...
createUtilityClassName
({
gap
,
breakpoints
,
minBreakpoint
}))
});
});
Stack
.
displayName
=
'Stack'
;
export
default
Stack
;
Event Timeline
Log In to Comment