♻️ Allow styling of the accordion title

This commit is contained in:
Philipp Stracker 2025-01-22 17:56:05 +01:00
parent bd6a9cc2c1
commit 3e41928f59
No known key found for this signature in database

View file

@ -15,6 +15,7 @@ import {
const Accordion = ( {
title,
id = '',
noCaps = false,
initiallyOpen = null,
description = '',
children = null,
@ -44,7 +45,7 @@ const Accordion = ( {
>
<Header>
<TitleWrapper>
<Title noCaps={ true }>{ title }</Title>
<Title noCaps={ noCaps }>{ title }</Title>
<Action>
<Icon icon={ icon } />
</Action>