thunderstore-io / thunderstore-ui

Thunderstore React UI
11 stars 5 forks source link

Add Select component #46

Closed nihaals closed 3 years ago

nihaals commented 3 years ago

This includes:

There is more info in #8 and https://github.com/thunderstore-io/thunderstore-ui/pull/8#issuecomment-789058888.

Types

type SelectOption = {
  label: string;
  value: string;
};

interface SelectProps {
  options: SelectOption[];
  disabled?: boolean;
  multiSelect?: boolean;
  search?: boolean;
  name: string;
}

Defaults

Prop Default value
disabled false
multiSelect false
search true
nihaals commented 3 years ago

Added with #8