Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pubsweet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giorgio Sironi
pubsweet
Commits
a364b9b6
Commit
a364b9b6
authored
7 years ago
by
Alf Eaton
Browse files
Options
Downloads
Patches
Plain Diff
Add Button atom to xpub-ui
parent
93edfae5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/atoms/Button.js
+9
-0
9 additions, 0 deletions
src/atoms/Button.js
src/atoms/Button.md
+11
-0
11 additions, 0 deletions
src/atoms/Button.md
src/index.js
+2
-0
2 additions, 0 deletions
src/index.js
with
22 additions
and
0 deletions
src/atoms/Button.js
0 → 100644
+
9
−
0
View file @
a364b9b6
import
React
from
'
react
'
const
Button
=
({
children
,
type
=
'
button
'
,
disabled
})
=>
(
<
button
type
=
{
type
}
disabled
=
{
disabled
}
>
{
children
}
<
/button
>
)
export
default
Button
This diff is collapsed.
Click to expand it.
src/atoms/Button.md
0 → 100644
+
11
−
0
View file @
a364b9b6
A button.
```
js
<
Button
>
Save
<
/Button>
```
A button can be disabled.
```
js
<
Button
disabled
>
Save
<
/Button>
```
This diff is collapsed.
Click to expand it.
src/index.js
+
2
−
0
View file @
a364b9b6
export
{
default
as
Button
}
from
'
./atoms/Button
'
export
{
default
as
Checkbox
}
from
'
./atoms/Checkbox
'
export
{
default
as
Checkbox
}
from
'
./atoms/Checkbox
'
export
{
default
as
Icon
}
from
'
./atoms/Icon
'
export
{
default
as
Menu
}
from
'
./atoms/Menu
'
export
{
default
as
Menu
}
from
'
./atoms/Menu
'
export
{
default
as
Radio
}
from
'
./atoms/Radio
'
export
{
default
as
Radio
}
from
'
./atoms/Radio
'
export
{
default
as
Tags
}
from
'
./atoms/Tags
'
export
{
default
as
Tags
}
from
'
./atoms/Tags
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment