Skip to content

added radio and checkbox #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

added radio and checkbox #12

wants to merge 4 commits into from

Conversation

newracket
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented May 5, 2025

Thanks for contributing!
It looks like you haven't updated this package's version in package.json.
Please update the package version according to semantic versioning guidelines.

Copy link

github-actions bot commented May 5, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://acmucsd.github.io/components/pr-preview/pr-12/

Built to branch gh-pages at 2025-05-12 04:48 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

}

.storybook-checkbox input[type="checkbox"] {
cursor: pointer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkbox shouldn't have cursor: pointer when disabled

checked?: boolean;
disabled?: boolean;
mode?: 'light' | 'dark';
label?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be ReactNode? that way you can add formatting to the labels. it should also be required i think since you already wrap the checkbox in a <label>

import './checkbox.css';

export interface CheckboxProps {
checked?: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add defaultChecked

import React, { FC, useEffect, useState } from 'react';
import './checkbox.css';

export interface CheckboxProps {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also let you specify name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants