@hashicorp/design-system-codemods
Version:
Helios Design System codemods
36 lines (25 loc) • 793 B
Markdown
# v4/dropdown-list-item-interactive
## Usage
To run this codemod in your project using `npx`, you would run the following:
```bash
npx /design-system-codemods v4/dropdown-list-item-interactive path/to/some/glob/**/*.hbs
```
## Local usage
To run this codemod in this repository (even before publishing it), you would run the following from the root directory of this repository:
```bash
node ./packages/codemods/bin/cli.js v4/dropdown-list-item-interactive path/to/some/glob/**/*.hbs
```
## Input
```hbs
<Hds::Dropdown as |dd|>
<dd.Title ="Title text" />
<dd.Interactive ="#" ="Edit" />
</Hds::Dropdown>
```
## Output
```hbs
<Hds::Dropdown as |dd|>
<dd.Title ="Title text" />
<dd.Interactive ="#">Edit</dd.Interactive>
</Hds::Dropdown>
```