Skip to content

Commit

Permalink
docs(window.stories.js): add panel to window example
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed May 19, 2020
1 parent 19ce1ae commit c9f61c6
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/components/Window/Window.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import React from 'react';
import styled from 'styled-components';
import { Window, WindowContent, WindowHeader, Button, Toolbar } from 'react95';
import {
Window,
WindowContent,
WindowHeader,
Button,
Toolbar,
Panel
} from 'react95';

export default {
title: 'Window',
Expand Down Expand Up @@ -44,16 +51,20 @@ const Wrapper = styled.div`
transform: translateY(-50%);
}
}
p {
line-height: 1.4;
}
.window {
width: 400px;
min-height: 200px;
}
.window:nth-child(2) {
margin: 2rem;
}
.footer {
display: block;
margin: 0.25rem;
height: 31px;
line-height: 31px;
padding-left: 0.25rem;
}
`;
export const Default = () => (
<>
Expand Down Expand Up @@ -82,6 +93,9 @@ export const Default = () => (
tho!)
</p>
</WindowContent>
<Panel variant='well' className='footer'>
Put some useful informations here
</Panel>
</Window>

<Window className='window'>
Expand All @@ -99,16 +113,3 @@ export const Default = () => (
Default.story = {
name: 'default'
};

export const Resizable = () => (
<Window resizable>
<WindowHeader>react95.exe</WindowHeader>
<WindowContent>
Resizable Window displays resize handle in bottom right corner
</WindowContent>
</Window>
);

Resizable.story = {
name: 'resizable'
};

0 comments on commit c9f61c6

Please sign in to comment.