Skip to content

Suggestion #1

@joaqo

Description

@joaqo

Hey, love that you built this repo, thanks for publishing it!

Was looking a bit at how you export components, using things like:

export const Composer = {
  Provider: ComposerProvider,
  Frame: ComposerFrame,
  Header: ComposerHeader,
  Input: ComposerInput,
  Footer: ComposerFooter,
  AttachButton: ComposerAttachButton,
  Attachments: ComposerAttachments,
  SendButton: ComposerSendButton,
};

I just found out you can do something like export * as Composer from '@some/dep';.

I got it from radix themselves https://app.unpkg.com/radix-ui%401.4.2/files/src/index.ts

Thought maybe this pattern could be useful for you somehow.

Cheers1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions