Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
ae61dff5
Unverified
Commit
ae61dff5
authored
4 years ago
by
Derek
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
ui v2: paper component (#817)
parent
4a5b4881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/packages/core/src/paper.tsx
+15
-0
frontend/packages/core/src/paper.tsx
frontend/packages/core/src/stories/paper.stories.tsx
+15
-0
frontend/packages/core/src/stories/paper.stories.tsx
with
30 additions
and
0 deletions
+30
-0
frontend/packages/core/src/paper.tsx
0 → 100644
+
15
-
0
View file @
ae61dff5
import
*
as
React
from
"
react
"
;
import
styled
from
"
@emotion/styled
"
;
import
type
{
PaperProps
as
MuiPaperProps
}
from
"
@material-ui/core
"
;
import
{
Paper
as
MuiPaper
}
from
"
@material-ui/core
"
;
export
interface
PaperProps
extends
Pick
<
MuiPaperProps
,
"
children
"
>
{}
const
StyledPaper
=
styled
(
MuiPaper
)({
boxShadow
:
"
0px 4px 6px rgba(53, 72, 212, 0.2)
"
,
border
:
"
1px solid rgba(13, 16, 48, 0.1)
"
,
background
:
"
#FFFFFF
"
,
padding
:
"
16px
"
,
});
export
const
Paper
=
({
children
}:
PaperProps
)
=>
<
StyledPaper
>
{
children
}
</
StyledPaper
>;
This diff is collapsed.
Click to expand it.
frontend/packages/core/src/stories/paper.stories.tsx
0 → 100644
+
15
-
0
View file @
ae61dff5
import
*
as
React
from
"
react
"
;
import
type
{
Meta
}
from
"
@storybook/react
"
;
import
{
Paper
}
from
"
../paper
"
;
export
default
{
title
:
"
Core/Paper
"
,
component
:
Paper
,
}
as
Meta
;
export
const
Primary
=
()
=>
(
<
Paper
>
<
div
>
Some text in paper
</
div
>
</
Paper
>
);
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment