Ability to pass a custom icon to <Aside> #2251
Replies: 2 comments 5 replies
-
I think this is a reasonable request. The one tricky part is how to handle this for our |
Beta Was this translation helpful? Give feedback.
-
According to https://github.com/micromark/micromark-extension-directive#syntax, which is what is used in https://github.com/remarkjs/remark-directive?tab=readme-ov-file, we can specify an attribute in this syntax: We can define the extra icons as the iconPath objects defined in asides.ts. One option is to define that as part of starlight config object in astro.config.ts, I'm not sure whether that's the best place for it or not. Any suggestion there would be welcome, thanks! |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.25.4
What is your idea?
We have multiple instances where we want to show
<Asides>
suggesting keyboard shortcuts. Changing the name of the Aside is possible right now, but we also want to display a keyboard icon on that aside.Why is this feature necessary?
Since the Aside component is relatively small in terms of LOC, it would be possible to just make our own component based on the original implementation and go from there. However, it would be good to have upstream support for it if it meet's the project's criteria.
Do you have examples of this feature in other projects?
https://zulip.com/help/quote-and-reply
Participation
Beta Was this translation helpful? Give feedback.
All reactions