Skip to content

Referring to other components #515

Answered by nonameolsson
nonameolsson asked this question in Q&A
Discussion options

You must be logged in to vote

I am going to answer this myself, after getting some help of a colleague :)

import { StyledList, StyledListItem } from 'components/list'

export const OngoingTaskList = styled(StyledList)`
  ${tw`p-0`};

  ${StyledListItem} {
    ${tw`
      rounded cursor-pointer transition-colors border border-transparent border-solid py-0 px-4
      last:pb-2
      hover:(bg-warning border-warning)
  `};
  }
`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ben-rogerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant