Skip to content

Commit

Permalink
Add hideChevron option
Browse files Browse the repository at this point in the history
  • Loading branch information
douwepausma committed Jul 11, 2024
1 parent cbe8feb commit 990399f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ AccordionItem.displayName = "AccordionItem"

const AccordionTrigger = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Trigger>,
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
>(({ className, children, ...props }, ref) => (
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & { hideChevron: boolean }
>(({ className, hideChevron, children, ...props }, ref) => (
<AccordionPrimitive.Header className="flex">
<AccordionPrimitive.Trigger
ref={ref}
Expand All @@ -35,7 +35,7 @@ const AccordionTrigger = React.forwardRef<
{...props}
>
{children}
<FontAwesomeIcon icon={faChevronDown} className="h-4 w-4 shrink-0 transition-transform duration-200" />
{/* {!hideChevron && <FontAwesomeIcon icon={faChevronDown} className="h-4 w-4 shrink-0 transition-transform duration-200" />} */}
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
))
Expand Down

0 comments on commit 990399f

Please sign in to comment.