Skip to content

Commit

Permalink
fix(ffe-accordion-react): add missing props export
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hellstrand committed May 14, 2024
1 parent 3941951 commit dd9855e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ffe-accordion-react/src/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import classNames from 'classnames';
import { AccordionProvider } from './AccordionContext';

interface AccordionProps extends React.ComponentPropsWithoutRef<'div'> {
export interface AccordionProps extends React.ComponentPropsWithoutRef<'div'> {
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/ffe-accordion-react/src/AccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Collapse } from '@sb1/ffe-collapse-react';
import classNames from 'classnames';
import { AccordionContext } from './AccordionContext';

interface AccordionItemProps extends React.ComponentPropsWithoutRef<'div'> {
export interface AccordionItemProps
extends React.ComponentPropsWithoutRef<'div'> {
/** The heading */
heading: NonNullable<React.ReactNode>;
/** The content to appear when expanded */
Expand Down
4 changes: 2 additions & 2 deletions packages/ffe-accordion-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Accordion } from './Accordion';
export { AccordionItem } from './AccordionItem';
export { Accordion, AccordionProps } from './Accordion';
export { AccordionItem, AccordionItemProps } from './AccordionItem';

0 comments on commit dd9855e

Please sign in to comment.