-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fabien Hébert
committed
Sep 28, 2022
1 parent
0f7fae2
commit 1995068
Showing
5 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.72 KB
.loki/reference/chrome_laptop_Components_Container_Stack_Classname.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
import styled from '@emotion/styled' | ||
import Stack from '..' | ||
import { Template } from './Template' | ||
|
||
export const Classname = Template.bind({}) | ||
|
||
const StyledStack = styled(Stack)` | ||
background: #aaa; | ||
` | ||
|
||
Classname.parameters = { | ||
docs: { | ||
storyDescription: | ||
'prop `Classname` allows to specify the html element className', | ||
}, | ||
} | ||
|
||
Classname.decorators = [ | ||
() => ( | ||
<StyledStack gap={2} direction="row"> | ||
<div style={{ background: '#DDD', padding: '8px' }}>First child</div> | ||
<div style={{ background: '#DDD', padding: '8px' }}>Second child</div> | ||
<div style={{ background: '#DDD', padding: '8px' }}>Third child</div> | ||
</StyledStack> | ||
), | ||
] |
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