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

Add InlineCodeHighlight component #483

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

Godisemo
Copy link
Contributor

Copy link

Test Environment for snehilvj/dash-mantine-components-483
Updated on: 2025-01-20 18:52:53 UTC

@AnnMarieW
Copy link
Collaborator

This is perfect! Thanks so much @Godisemo 🏅

No test required because it's just pass through props. I'll tag Alex for a review - it's always good to have another set of eyes on a PR, but this will make the next release as well.

Before this is merged, please restore the original app in the PR folder. That app is a boilerplate sample app with instructions on how to use the link generated by PyCafe with the Test Environment for this PR

It's OK to include a minimal sample app for the in the comments like this.

import dash_mantine_components as dmc
from dash import Dash, _dash_renderer

_dash_renderer._set_react_version("18.2.0")

app = Dash(external_stylesheets=dmc.styles.ALL)

app.layout = dmc.MantineProvider(
    [
        dmc.Text(
            [
                "You can highlight code inline ",
                dmc.InlineCodeHighlight(
                    code='<InlineCodeHighlight code="" language="tsx" />',
                    language="tsx",
                ),
                " Is not that cool?",
            ]
        )
    ]
)


if __name__ == "__main__":
    app.run(debug=True)

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 LGTM!

@AnnMarieW AnnMarieW merged commit edd3f97 into snehilvj:master Jan 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants