Skip to content
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

[FEATURE] Add functionality for extending renders with custom rendering #124

Closed
1 task done
Darginec05 opened this issue Apr 23, 2024 · 1 comment · Fixed by #204
Closed
1 task done

[FEATURE] Add functionality for extending renders with custom rendering #124

Darginec05 opened this issue Apr 23, 2024 · 1 comment · Fixed by #204
Labels
enhancement New feature or request

Comments

@Darginec05
Copy link
Collaborator

Is this a unique feature?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.

Proposed Solution

Should be available through extend:

Headings.HeadingThree.extend({
    renders: {
      "heading-three": ({ element, attributes, blockId, block }) => {
        return <Typograph as="h3" {...attributes}>{children}</Typograph>
      }
    }
  })

Screenshots

No response

Do you want to work on this issue?

Yes

If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

No response

@Darginec05 Darginec05 added the enhancement New feature or request label Apr 23, 2024
@Darginec05
Copy link
Collaborator Author

Related to #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant