{"repo":"Ademking/cascader-shadcn","free":true,"listed":false,"github":"https://github.com/Ademking/cascader-shadcn","clone":"git clone https://github.com/Ademking/cascader-shadcn.git","description":"A cascading dropdown menu component for selecting hierarchical data like locations, categories, or organizational structures.","language":"TypeScript","stars":114,"topics":["cascader","shadcn","shadcn-ui"],"license":"MIT","category":"ui-components","readme_excerpt":"Cascader-Shadcn A cascading dropdown component for selecting hierarchical data such as locations, categories, or organizational structures. Inspired by: Cascader components from Ant Design and React Suite --- Features Hierarchical cascading menu Click or hover expansion Supports icons and custom labels Custom display rendering Disable per option or entire component Shadcn-compatible + Tailwind-friendly --- Installation Using Shadcn CLI Manual Installation Copy the Cascader.tsx component from the repository into your Shadcn components directory. --- Usage Example.jsx API Reference CascaderOption Property Type Description ----------- ---------------- ------------------------------------------- value string Unique option identifier label React.ReactNode Display label (text or component) textLabel string Text label for display; fallback to value disabled boolean Whether this option is disabled children CascaderOption[] Nested options --- Cascader Props Prop Type Default Description ---------------- ------------------------------ ----------------- -------------------------------- options CascaderOption[] — Cascader data options value string[] — Controlled selected value defaultValue string[] — Initial selected value onChange (value, options) = void — Triggered when selection changes placeholder string \"Please select\" Placeholder text disabled boolean false Disable the component allowClear boolean true Show clear button expandTrigger \"click\" \\ \"hover\" \"click\" How nested options exp","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ademking","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ademking/cascader-shadcn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}