Skip to content

Conversation

@newracket
Copy link
Contributor

No description provided.

@github-actions
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.

@github-actions
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.

3 participants