Skip to content

Commit

Permalink
fix: Export Collabsible core component (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth authored Jun 6, 2024
1 parent 4609b11 commit 50e1855
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- Correctly export `Collapsible` core component

## [1.0.32] - 2024-06-04

### Added
Expand Down
12 changes: 8 additions & 4 deletions src/core/components/collapsible/collapsible.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ export type CollapsedSize = 'sm' | 'md' | 'lg';

export interface ICollapsibleProps extends ComponentProps<'div'> {
/**
* The initial height of the collapsible container while closed. @default md
* The initial height of the collapsible container while closed.
* @default md
*/
collapsedSize?: CollapsedSize;
/**
* Custom pixel height for the collapsible container that will override collapsedSize prop if defined.
*/
customCollapsedHeight?: number;
/**
* Controlled state of the collapsible container. @default false
* Controlled state of the collapsible container.
* @default false
*/
isOpen?: boolean;
/**
* Default state of the collapsible container. @default false
* Default state of the collapsible container.
* @default false
*/
defaultOpen?: boolean;
/**
Expand All @@ -28,7 +31,8 @@ export interface ICollapsibleProps extends ComponentProps<'div'> {
*/
buttonLabelOpened?: string;
/**
* Show overlay when the collapsible container is open. @default false
* Show overlay when the collapsible container is open.
* @default false
*/
showOverlay?: boolean;
/**
Expand Down
1 change: 1 addition & 0 deletions src/core/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from './breadcrumbs';
export * from './button';
export * from './cards';
export * from './checkbox';
export * from './collapsible';
export * from './dataList';
export * from './definitionList';
export * from './dialogs';
Expand Down

0 comments on commit 50e1855

Please sign in to comment.