mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
IMPROVE example, to be more obvious what's going on
This commit is contained in:
parent
039d124001
commit
384d0db2c5
@ -4,17 +4,19 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
||||
|
||||
# Preview
|
||||
|
||||
<div>
|
||||
<div class="pa4 bg-desktop-500">
|
||||
<div className="flex justify-between">
|
||||
<span className="stripped">500</span>
|
||||
<span>#F47321</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pa4 bg-sunray-500">
|
||||
<div className="flex justify-between">
|
||||
<span>500</span>
|
||||
<span>#FCB736</span>
|
||||
</div>
|
||||
<style>
|
||||
{`
|
||||
.a-custom-class {
|
||||
border: 10px solid hotpink;
|
||||
}
|
||||
.a-custom-classname {
|
||||
border: 10px solid blue;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
|
||||
<div class="a-custom-class">
|
||||
<div className="a-custom-classname">
|
||||
This box should have a pink and blue border
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user