-
Notifications
You must be signed in to change notification settings - Fork 51
feature/expose-mui-component-props #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feature/expose-mui-component-props #329
Conversation
@voidlaszlo Thanks for opening this! I like the idea of exposing more props of underlying components, but I think it would be more immediately usable and consistent with other MUI components to directly expose As for exposing things like |
@sjdemartini I can look into that. I'm not sure how easy it is to implement an ExampleUsage
Implementation
In the cases, where we have multiple underlying mui components, we could use |
@voidlaszlo Yeah, as you say, I'm referring to exposing Separately, I think it would be worth also exposing other props of the top-level component and ideally "slots" for inner children components, but I think we can save that for a separate PR to keep things simpler here. The slot props approach I think would warrant a more significant refactor across more mui-tiptap components. WDYT? |
@sjdemartini I'll get to it. Yeah let's do the |
6638a1b
to
ad31460
Compare
I pushed the changes and updated the description. (removed unnecessary and unrelated information for clarity) |
b333f7a
to
995e463
Compare
…tainer, MenuBar, RichTextContent and RichTextField
…nent in FieldContainer, MenuBar, RichTextContent, RichTextField
…nent in ControlledBubbleMenu
… exposed props of mui components
995e463
to
640bc51
Compare
… RichTextContent component in RichTextReadOnly
Updated the branch with rebase. |
Just wanted to mention that I've been quite busy but plan to take a look and get to reviewing this soon (hopefully by next weekend). Thanks again for working on this. |
Description
Exposed the props of the root MUI components.
FieldContainer
MenuBar
RichTextContent
RichTextField
and changed the
<div>
tag in theFieldContainer
to be a MUIBox
component for the easy modifications.Usage
Related Issues
#302
Checks
pnpm run build
runs successfully