Skip to content

Commit a569225

Browse files
committed
update components
1 parent 6888085 commit a569225

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/pages/components.ch

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#universal ClickableButton(props) {
2+
return <ButtonPrimary onClick={() => { alert("you clicked"); }}>Clickable</ButtonPrimary>
3+
}
4+
15
func ComponentsPage(page : &mut HtmlPage) {
26
page.appendTitle("Components - Chemical")
37
page.defaultPrepare()
@@ -37,6 +41,7 @@ func ComponentsPage(page : &mut HtmlPage) {
3741
<div class="section-title">Buttons</div>
3842
<div class="demo-row">
3943
<ButtonPrimary>Primary</ButtonPrimary>
44+
<ClickableButton />
4045
<Button>Default</Button>
4146
<ButtonOutline>Outline</ButtonOutline>
4247
<ButtonGhost>Ghost</ButtonGhost>

0 commit comments

Comments
 (0)