Skip to content

Commit

Permalink
Update _collapsible_custom_main.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymig88 authored Jul 25, 2024
1 parent 42317d3 commit b52e485
Showing 1 changed file with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Collapsible, useCollapsible, Flex, Title, List, ListItem } from '../..'

const CollapsibleCustomMain = (props) => {
Expand All @@ -8,52 +9,52 @@ const CollapsibleCustomMain = (props) => {
<>
<Collapsible collapsed={isCollapsed}>
<Flex
align="center"
gap="sm"
justify="between"
position="sticky"
top="0"
cursor="pointer"
htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
>
align="center"
cursor="pointer"
gap="sm"
htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
justify="between"
position="sticky"
top="0"
>
<Title
dark={props.dark}
size={4}
text="Custom Main Section" />
dark={props.dark}
size={4}
text="Custom Main Section" />
</Flex>
<Collapsible.Content
padding="none">
padding="none">
<div>
<List>
<ListItem
align="stretch"
flexDirection="column"
>
Checklist item
{"Checklist item"}
</ListItem>
<ListItem
align="stretch"
flexDirection="column"
>
Checklist item
{"Checklist item"}
</ListItem>
<ListItem
align="stretch"
flexDirection="column"
>
Checklist item
{"Checklist item"}
</ListItem>
<ListItem
align="stretch"
flexDirection="column"
>
Checklist item
{"Checklist item"}
</ListItem>
<ListItem
align="stretch"
flexDirection="column"
>
Checklist item
{"Checklist item"}
</ListItem>
</List>
</div>
Expand All @@ -63,4 +64,8 @@ const CollapsibleCustomMain = (props) => {
)
}

CollapsibleCustomMain.propTypes = {
dark: PropTypes.bool,
}

export default CollapsibleCustomMain

0 comments on commit b52e485

Please sign in to comment.