From 21bd396d64dfb8e555d52bbd97f108ba53e03a31 Mon Sep 17 00:00:00 2001 From: Gururajj77 Date: Tue, 30 Apr 2024 13:47:45 +0530 Subject: [PATCH] feat: export props for accordion --- packages/react/src/components/Accordion/Accordion.tsx | 2 +- packages/react/src/components/Accordion/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/Accordion/Accordion.tsx b/packages/react/src/components/Accordion/Accordion.tsx index 3e22c9aca2b8..264f78128021 100644 --- a/packages/react/src/components/Accordion/Accordion.tsx +++ b/packages/react/src/components/Accordion/Accordion.tsx @@ -11,7 +11,7 @@ import PropTypes from 'prop-types'; import React, { PropsWithChildren } from 'react'; import { AccordionProvider } from './AccordionProvider'; -interface AccordionProps { +export interface AccordionProps { /** * Specify the alignment of the accordion heading * title and chevron. Defaults to `end`. diff --git a/packages/react/src/components/Accordion/index.tsx b/packages/react/src/components/Accordion/index.tsx index 6d286c73d843..430221a9b45a 100644 --- a/packages/react/src/components/Accordion/index.tsx +++ b/packages/react/src/components/Accordion/index.tsx @@ -5,9 +5,10 @@ * LICENSE file in the root directory of this source tree. */ -import Accordion from './Accordion'; +import Accordion, { AccordionProps } from './Accordion'; export default Accordion; export { Accordion }; +export type { AccordionProps }; export { default as AccordionItem } from './AccordionItem'; export { default as AccordionSkeleton } from './Accordion.Skeleton';