question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Undefined StarIcon on AirbnbExample

See original GitHub issue

Bug report

I just tried copying the AirbnbExample from the Box documentation: https://chakra-ui.com/box and I got an error saying StarIcon is not defined.

Expected behavior

The example should be updated to use the <Icon> component, i.e.

              <Icon
                name="star"
                key={i}
                color={i < property.rating ? "teal.500" : "gray.300"}
              />

I would love to do a PR on the documentation repo but I did not find it, would anyone kindly point me out to the source code of the Box documentation page?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ljosberinncommented, Oct 5, 2020

The entire website folder! It’s funneled through MDX, so /website/docs/.

0reactions
hemscommented, Oct 5, 2020

Sorry, I wasn’t aware - turns out, the icons are all coming from @chakra-ui/icons! Here are they grouped in the docs. It’s also used in the nextjs-typescript example.

i see, so it actually exists on v1. good stuff.

I’m curious to know where is the source code for the documentation tough? as in: if I find a “typo” or any mistake on the documentation, where would I find the source code on github to submit a PR ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Box - Chakra UI
Create responsive layouts with ease. Provide a shorthand way to pass styles via props ( bg instead of backgroundColor ). Compose new component...
Read more >
Lesson 9 - React 2: More Hooks, Libraries, Styling, and Routing
In the example above, it is 0 because our counter starts from zero. ... function AirbnbExample() {. const property = { ... <StarIcon....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found