mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 18:09:09 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
13
packages/design-system/atoms/collapse/Collapse.stories.tsx
Normal file
13
packages/design-system/atoms/collapse/Collapse.stories.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { SmallTitle } from '@roleypoly/design-system/atoms/typography';
|
||||
import { Collapse } from './Collapse';
|
||||
|
||||
export default {
|
||||
title: 'Atoms/Collapse',
|
||||
component: Collapse,
|
||||
};
|
||||
|
||||
export const collapse = (args) => (
|
||||
<SmallTitle>
|
||||
Hello, <Collapse {...args}>small</Collapse> world!
|
||||
</SmallTitle>
|
||||
);
|
10
packages/design-system/atoms/collapse/Collapse.tsx
Normal file
10
packages/design-system/atoms/collapse/Collapse.tsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
import styled, { css } from 'styled-components';
|
||||
import { onSmallScreen } from '../breakpoints';
|
||||
|
||||
export const Collapse = styled.span<{ preventCollapse?: boolean }>`
|
||||
${(props) =>
|
||||
!props.preventCollapse &&
|
||||
onSmallScreen(css`
|
||||
display: none;
|
||||
`)}
|
||||
`;
|
1
packages/design-system/atoms/collapse/index.ts
Normal file
1
packages/design-system/atoms/collapse/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './Collapse';
|
Loading…
Add table
Add a link
Reference in a new issue