raunofreiberg
Repos
80
Followers
2005
Following
7

Fast, unstyled command menu React component.

5111
118

The documented collection of UI components 🤓

1226
62

Pixel perfect layout inspection.

1079
26

Accessibility testing visualized

172
3

Events

issue comment
feat: separate value from text content when filtering

You should be able to pass a value prop to Command.Item and use children to display the label.

Created at 1 week ago
issue comment
Create New

Hi.

Have you tried rendering a Command.Item where the value is the current input value?

<Command>
  <Command.Input value={inputValue} onChange={e => setInputValue(e.target.value)} />
  <Command.List>
    <Command.Item value={inputValue} onSelect={createNew}>
       Create new {inputValue}
    </Command.Item>
  </Command.List>
</Command>

This way it should always match the input query and even show up when no other results are matching.

Created at 1 week ago
Created at 4 weeks ago
closed issue
Use cmdk for Chrome Extension

I am trying to add cmdk for the react-based chrome extension. But Command.Dialog appears at the end of the page without any styling.

For example, how it looks on github.com:

Do you have any idea what went wrong?

Created at 1 month ago
issue comment
Use cmdk for Chrome Extension

The component is unstyled out of the box for customization. You can copy and paste styles as a starting point from here.

Created at 1 month ago
issue comment
Considering enabling `react/no-unknown-property`

Hi hi! Checking in to see if there's any movement or further consideration for this? Really missing this every day!

Created at 2 months ago