FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing-website/src/components/reference/Section.js at main · processing/processing-website · GitHub
processing
processing-website
Repository navigation
Code
Issues
112
(112)
Pull requests
16
(16)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
processing-website
/
src
/
components
/
reference
/
Section.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 573 Bytes
Breadcrumbs
processing-website
/
src
/
components
/
reference
/
Section.js
Copy path
File metadata and controls
20 lines (17 loc) · 573 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import
React
,
{
memo
}
from
'react'
;
import
classnames
from
'classnames'
;
import
*
as
css
from
'./Section.module.css'
;
import
*
as
grid
from
'../../styles/grid.module.css'
;
const
Section
=
(
{
title
,
children
,
short
,
columns
=
true
}
)
=>
{
return
(
<
div
className
=
{
classnames
(
grid
.
grid
,
css
.
root
,
{
[
css
.
columns
]
:
columns
,
[
css
.
short
]
:
short
}
)
}
>
<
h4
className
=
{
classnames
(
grid
.
col
,
css
.
title
)
}
>
{
title
}
</
h4
>
<
div
className
=
{
classnames
(
grid
.
col
,
css
.
content
)
}
>
{
children
}
</
div
>
</
div
>
)
;
}
;
export
default
memo
(
Section
)
;
Back
|
FazBrowse Home
|
New Git URL