Sha256: ff7462783c7753b5b3b91f7d312e6a770e6c4844367fdbd20ef5ce9443efc357
Contents?: true
Size: 1.87 KB
Versions: 30
Compression:
Stored size: 1.87 KB
Contents
import React from 'react' import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from 'playbook-ui' const CollapsibleCustomMain = () => { const [isCollapsed, setIsCollapsed] = useCollapsible(true) return ( <> <Collapsible collapsed={isCollapsed} > <Background backgroundColor="white" cursor="pointer" htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}} position="sticky" top="0" > <Flex align="center" gap="sm" justify="between" > <Title size={4} text="Custom Main Section" /> </Flex> </Background> <Collapsible.Content padding="none"> <div> <List> <ListItem align="stretch" flexDirection="column" > Checklist item </ListItem> <ListItem align="stretch" flexDirection="column" > Checklist item </ListItem> <ListItem align="stretch" flexDirection="column" > Checklist item </ListItem> <ListItem align="stretch" flexDirection="column" > Checklist item </ListItem> <ListItem align="stretch" flexDirection="column" > Checklist item </ListItem> </List> </div> </Collapsible.Content> </Collapsible> </> ) } export default CollapsibleCustomMain
Version data entries
30 entries across 30 versions & 2 rubygems