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.

Customizeable <CheckboxGroup />

See original GitHub issue

What problem does this feature solve?

With this we are not limited to just passing the options key values to the <CheckboxGroup /> property, we can customize how the checkboxes group would look like. We can put them inside <Card> components for example

What does the proposed API look like?

<Card>
  <Checkbox>
    Select All
  </Checkbox>
</Card>

<Card>
  <CheckboxGroup
    value={1}
  >
    Option 1
  </CheckboxGroup>
</Card>

<Card>
  <CheckboxGroup
    value={2}
  >
    Option 2
  </CheckboxGroup>
</Card>

<Card>
  <CheckboxGroup
    value={3}
  >
    Option 3
  </CheckboxGroup>
</Card>

it would look like this https://imgur.com/a/TVegf

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
yesmeckcommented, Nov 17, 2017

I’ve implemented a similar feature in a internal project, I’d like the API looks like this:

<CheckboxGroup>
  <Card>
    <Checkbox all>
      Select All
    </Checkbox>
  </Card>

  <Card>
    <Checkbox value={1}>
      Option 1
    </Checkbox>
  </Card>

  <Card>
    <Checkbox value={2}>
      Option 2
    </Checkbox>
  </Card>

  <Card>
    <Checkbox value={3}>
      Option 3
    </Checkbox>
  </Card>
</CheckboxGroup>
1reaction
crisryantancommented, Nov 17, 2017

Thanks for the help @yesmeck. When I free up some time I will help updating the documentation. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Create a Custom Checkbox - W3Schools
Learn how to create custom checkboxes and radio buttons with CSS. Default: One Two One Two. Custom checkbox: One
Read more >
Pure CSS Custom Checkbox Style | Modern CSS Solutions
We'll create custom, cross-browser, theme-able, scalable checkboxes in pure CSS. We'll use `currentColor`, the `em` unit, SVG, and CSS grid ...
Read more >
Custom HTML and CSS Checkbox Examples You Can Use Too
Material Inspired Checkboxes and Radio Groups. HTML; SCSS ... The checkboxes are customizable according to user preference.
Read more >
91 Checkboxes CSS - Free Frontend
Collection of free HTML and CSS custom checkbox examples: with image, with label, checked, etc. Update of February 2020 collection. 8 new items....
Read more >
Make group of checkboxes required - Stack Overflow
When the form is submitted, loop through all the checkboxes and verify that at least one is checked using Array#some ; otherwise, ...
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