-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* run compileComponents on build script * IconToggle component added * Sample example chnage * typo fixes * Package version bump
- Loading branch information
Showing
4 changed files
with
46 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { h } from "preact"; | ||
import MaterialComponent from "../MaterialComponent"; | ||
|
||
/** | ||
* @prop disabled = false | ||
*/ | ||
export default class IconToggle extends MaterialComponent { | ||
constructor() { | ||
super(); | ||
this.componentName = "icon-toggle"; | ||
} | ||
materialDom(props) { | ||
return ( | ||
<i {...props} className="material-icons"> | ||
{props.children} | ||
</i> | ||
); | ||
} | ||
} |
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
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