-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added examples and bumped devDep on ffe-form.
- Loading branch information
Henrik Hermansen
committed
Aug 14, 2017
1 parent
cfd799d
commit d8db112
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import {render} from 'react-dom'; | ||
import Checkbox from '../src/checkbox'; | ||
|
||
require('./example.less'); | ||
|
||
const heading = document.createElement('h1'); | ||
heading.textContent = 'Checkbox'; | ||
heading.className = 'ffe-h1'; | ||
document.body.appendChild(heading); | ||
|
||
const checkboxDOM = document.createElement('section'); | ||
document.body.appendChild(checkboxDOM); | ||
|
||
render( | ||
<div className="ffe-input-group"> | ||
<Checkbox | ||
label="This is an example checkbox" | ||
name="justACheckbox" | ||
inline={ false } | ||
/> | ||
|
||
<Checkbox | ||
label="This is an example checkbox with error" | ||
name="anotherCheckbox" | ||
inline={ false } | ||
invalid={ true } | ||
/> | ||
</div> | ||
, checkboxDOM); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@import "../node_modules/ffe-core/less/ffe.less"; | ||
@import "../node_modules/ffe-form/less/form.less"; | ||
@font-url: "../node_modules/ffe-core/fonts"; | ||
|
||
body { | ||
margin: 2.5%; | ||
font-family: "MuseoSansRounded-500", arial, sans-serif; | ||
} | ||
|
||
.ffe-input-group { | ||
margin-bottom: 3em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters