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.

Chapter Ui Components

See original GitHub issue

With freeCodeCamp component picking pace, Chakra-ui became obsolete. To adapt for the new library, we need to push the components we’re currently using into it.

For this, we use Storybook to document, test, and isolate the component, and tailwind CSS to style them.

Because this Chapter is in early stage, the research and development of the component isn’t as intense as freeCodeCamp. But it’s still a good idea to check the freeCodeCamp wiki to get better perspective.

Components must follow the web accessibility requirements

The components are:






to be optimized

  • login/register
  • Tag
  • useBoolean
  • UseDisclosureReturn
  • Spinner
  • useToast
  • useDisclosure
  • UseDisclosureReturn
  • CircularProgress
  • Link
  • LinkButton
  • Badge
  • DataTable
  • RadioGroup
  • Radio
  • Select
  • LockIcon
  • useConfirm
  • ChakraProvider
  • ConfirmContextProvider

  • Exist in fcc library

Development steps

Research

  • Find component usage in the project and list all the props being used.
  • Compare usage and props with Chakra documentation.
  • Find out if a component has a child component and how they work in regard to the props.
  • Find out which classes are applied by default.

Development

  • Create an interface for the props.
  • Convert default styles to tailwind classes.
  • Assign classes based on prop.
  • Avoid creating a .css file.
  • Add children prop, if needed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
ahmadabdolsahebcommented, Jul 26, 2022

Just to clarify, we should go ahead with the current spec mentioned here: https://github.com/freeCodeCamp/freeCodeCamp/issues/44668 Once that is released, we will add the additional components that are specifically needed for chapter on the second sprint.

2reactions
huyenltnguyencommented, Jul 23, 2022

Thanks @ojeytonwilliams and @Sboonny!

I’ll need to spin up Chapter and check the components listed here. But at the moment, layout components (Grid, Row, Col,…) mentioned in https://github.com/freeCodeCamp/freeCodeCamp/issues/44668 are on my plate. Do let my know if you need any components to be prioritized 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 13 Creating Custom UI Components
A component class defines the state and behavior of a UI component. This behavior includes converting the value of a component to the...
Read more >
Exploring the UI Components | SpringerLink
After reading this chapter, you will be aware of which components have been included in the Flash Component Architecture and what functionality they...
Read more >
8. User Interface Components - Closure: The Definitive Guide ...
Chapter 8. User Interface Components The set of user interface (UI) components provided by the browser as HTML 4 elements is limited to...
Read more >
Chapter 11. A real-world UI component - liveBook · Manning
This chapter covers. Building a brand-new component and refreshing our memories about what we've learned so far, including the Shadow DOM, modules, ...
Read more >
UI Components and Layouts MCQs 22617 MAD MSBTE
Chapter 3: UI Components and Layouts 22617 MAD MCQs MSBTE, msbte mad 22617 mcq pdf download,msbte 22617 model answer,msbte model answer 22617.
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