Skip to content

Conversation

@tom-vx51
Copy link
Collaborator

Rationale

Implement a generic Select component supporting uncontrolled, controlled, and multi-select variants.

Changes

  • Implement Select component
  • Fix className not being passed in Stack

Testing

local, npm run test
Screenshot 2025-12-23 at 3 32 39 PM

@tom-vx51 tom-vx51 requested a review from a team as a code owner December 23, 2025 23:52
import { FC } from "react";

export const CheckIcon: FC<IconProps> = ({ className, ...props }) => (
<svg
Copy link
Contributor

Choose a reason for hiding this comment

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

I previously added this Icon component to try to reduce the need to define the svg in every icon, it may need to be modified to change height/width: https://github.com/voxel51/design-system/blob/develop/src/components/Icons/Icon.tsx

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah I had tried to use it, but it didn't seem to work correctly as a standalone icon (seems fine in the checkbox though). I didn't want to muck with the checkbox so added this one for now. Let's take another look once we have a good icon strategy

<Combobox value={value} onChange={handleChange} multiple={!exclusive}>
{/*// todo - replace with `Input` when available*/}
<ComboboxInput
displayValue={(v: string | string[] | null): string =>
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick - might be nice to move this function outside the JSX just for readability

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agreed, mostly a placeholder for now but i'll clean it up with the real thing

@tom-vx51 tom-vx51 merged commit 636a6ed into develop Jan 5, 2026
1 check passed
@tom-vx51 tom-vx51 deleted the feat/select branch January 5, 2026 19:58
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