nextra icon indicating copy to clipboard operation
nextra copied to clipboard

“<Callout> Component” type `important` doesn't exist

Open vladavoX opened this issue 8 months ago • 2 comments

used versions

"nextra": "^4.2.17",
"nextra-theme-docs": "^4.2.17",

It doesn't exist in types, and it is not usable in page.mdx. Others do work

Image

vladavoX avatar Apr 08 '25 14:04 vladavoX

Available starting from 4.3 alpha

dimaMachina avatar Apr 08 '25 14:04 dimaMachina

I see that in your examples, Default callout with 💡 is now green? That is going to cause changes in all of our pages where we use the current default with "nextra": "^4.2.17".

Image

How it looks at current version (we've changed the icon): Image

Suggestion: Keep default as it is, and add Success Callout (green) with ✅ icon?

vladavoX avatar May 28 '25 12:05 vladavoX

@dimaMachina

What I don't understand is this, why are Callouts sometimes getting these extra classes and sometimes they are not?

You can tell that icon and text are in line here, height is 28px Image

But if you go down just a little bit, the same <Callout /> type is now a div with different classes Icon and text are not alinged, height is 24px

Image

Example here https://nextra.site/docs/built-ins/callout

Same thing happens in our docs

vladavoX avatar Jul 29 '25 07:07 vladavoX

that how MDX works

<Callout>foo</Callout>
<Callout>
  bar {/* will wrap bar with <p> */}
</Callout>

dimaMachina avatar Jul 29 '25 10:07 dimaMachina