Dropdown
Creates an easy to use dropdown component.
Once imported it can be modified the way you want.
Prefixes
- ch-dropdownIcon
- ch-dropdownIconTS
Props
Dropdown takes the following props:
- title: string - This is the button text
- data: DropdownData[]
Dropdown Data consists of:
- title: string
- link: string
- icon: ReactNode
Example: An example of the usage is provided in the snippet.
Preview