Skip to content
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

Add CommandBox Component #117

Open
aswinshenoy opened this issue Jun 18, 2023 · 0 comments
Open

Add CommandBox Component #117

aswinshenoy opened this issue Jun 18, 2023 · 0 comments
Labels
new component 🦄 a new component is to be added

Comments

@aswinshenoy
Copy link
Contributor

Inspiration - https://ui.shadcn.com/docs/components/command

image

Props

type CommandBoxGroupType:
      label?: string
      options: {
         label: string
         icon?: IconType
         link?: string
         onClick?: () => void
      }[]

type CommandBoxType:
  id?: string
  className?: string
  groupClassName?: string
  itemClassName?: string
  searchBoxClassName?: string
  labels?: {
     searchPlaceholder?: string
     noResultsFound?: string
  }
  isLoading?: boolean
  isAsync?: boolean
  onFetch?: (keyword: string) => CommandBoxGroupType[]
  groups?: CommandBoxGroupType[]
@aswinshenoy aswinshenoy added the new component 🦄 a new component is to be added label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new component 🦄 a new component is to be added
Projects
None yet
Development

No branches or pull requests

1 participant