Skip to content

Commit

Permalink
fix: added children's type to interface (#17408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gururajj77 committed Sep 11, 2024
1 parent 0dc9eb3 commit c823177
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/react/src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import cx from 'classnames';
import { usePrefix } from '../../internal/usePrefix';
import PropTypes from 'prop-types';
import React, { PropsWithChildren } from 'react';
import React, { PropsWithChildren, ReactNode } from 'react';
import { AccordionProvider } from './AccordionProvider';

export interface AccordionProps {
Expand All @@ -24,6 +24,11 @@ export interface AccordionProps {
*/
className?: string;

/**
* Pass in the children that will be rendered within the Accordion
*/
children?: ReactNode;

/**
* Specify whether an individual AccordionItem
* should be disabled.
Expand Down

0 comments on commit c823177

Please sign in to comment.