♻️ 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 = ( { const Accordion = ( {
title, title,
id = '', id = '',
noCaps = false,
initiallyOpen = null, initiallyOpen = null,
description = '', description = '',
children = null, children = null,
@ -44,7 +45,7 @@ const Accordion = ( {
> >
<Header> <Header>
<TitleWrapper> <TitleWrapper>
<Title noCaps={ true }>{ title }</Title> <Title noCaps={ noCaps }>{ title }</Title>
<Action> <Action>
<Icon icon={ icon } /> <Icon icon={ icon } />
</Action> </Action>