Skip to content

Commit

Permalink
feat(components): Expose Selection type for easy usage with Table
Browse files Browse the repository at this point in the history
… and other components (#4195)

* feat(components): Expose `Selection` type for easy usage with `Table` and other components

* Create polite-plants-deliver.md
  • Loading branch information
sebald authored Oct 4, 2024
1 parent 956982a commit 5c029ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .changeset/polite-plants-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@marigold/components": patch
---

feat(components): Expose `Selection` type for easy usage with `Table` and other components

When working with a `<Table>` you can now use

```ts
import type { Selection } from '@marigold/components';
```

instead of creating the type.
1 change: 1 addition & 0 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './types';
export * from './hooks';

export * from './Accordion';
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Re-export type from `react-aria` for DX.
*/

export type { Selection } from '@react-types/shared';

0 comments on commit 5c029ec

Please sign in to comment.