forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototype of generating style guide + snapshot tests from *.info.js
- Loading branch information
1 parent
08c5252
commit ed89a26
Showing
26 changed files
with
777 additions
and
867 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
import React from "react"; | ||
import Button from "metabase/components/Button"; | ||
|
||
export const component = Button; | ||
|
||
export const description = ` | ||
Metabase's main button component. | ||
`; | ||
|
||
export const examples = { | ||
"": <Button>Clickity click</Button>, | ||
"primary": <Button primary>Clickity click</Button>, | ||
"with an icon": <Button icon='star'>Clickity click</Button> | ||
}; |
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,14 @@ | ||
import React from "react"; | ||
import CheckBox from "metabase/components/CheckBox"; | ||
|
||
export const component = CheckBox; | ||
|
||
export const description = ` | ||
A standard checkbox. | ||
`; | ||
|
||
export const examples = { | ||
"off": <CheckBox />, | ||
"on": <CheckBox checked />, | ||
"on inverted": <CheckBox style={{ color: "#509EE3" }} invertChecked checked /> | ||
}; |
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,14 @@ | ||
import React from "react"; | ||
import StackedCheckBox from "metabase/components/StackedCheckBox"; | ||
|
||
export const component = StackedCheckBox; | ||
|
||
export const description = ` | ||
A stacked checkbox, representing "all" items. | ||
`; | ||
|
||
export const examples = { | ||
"off": <StackedCheckBox />, | ||
"on": <StackedCheckBox checked />, | ||
"on inverted": <StackedCheckBox style={{ color: "#509EE3" }} invertChecked checked /> | ||
}; |
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,13 @@ | ||
import React from "react"; | ||
import Toggle from "metabase/components/Toggle"; | ||
|
||
export const component = Toggle; | ||
|
||
export const description = ` | ||
A standard toggle. | ||
`; | ||
|
||
export const examples = { | ||
"off": <Toggle value={false} />, | ||
"on": <Toggle value={true} /> | ||
}; |
Oops, something went wrong.