This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6718e6
commit b50ba23
Showing
4 changed files
with
350 additions
and
5 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 |
---|---|---|
|
@@ -12,4 +12,5 @@ configure([ | |
addParameters({ | ||
docsContainer: DocsContainer, | ||
docs: DocsPage, | ||
framework: "react", | ||
}); |
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,35 @@ | ||
import { ClassNames } from "@emotion/core"; | ||
import React from "react"; | ||
import { Button } from "../Button"; | ||
import { colors } from "../../colors"; | ||
|
||
interface Props { | ||
theme: NonNullable<React.ComponentProps<typeof Button>["theme"]>; | ||
} | ||
|
||
export const ButtonLayout: React.FC<Props> = ({ children, theme }) => ( | ||
<ClassNames> | ||
{({ css, cx }) => ( | ||
<div | ||
className={cx( | ||
css({ | ||
backgroundColor: | ||
theme === "light" ? colors.white : colors.black.base, | ||
border: "solid 1px #dee2e7", | ||
borderRadius: 8, | ||
// display: "inline-flex", | ||
// flexDirection: "column", | ||
margin: 8, | ||
|
||
"> *": { | ||
margin: 8, | ||
display: "block", | ||
}, | ||
}) | ||
)} | ||
> | ||
{children} | ||
</div> | ||
)} | ||
</ClassNames> | ||
); |
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