@hashicorp/design-system-codemods
Version:
Helios Design System codemods
34 lines (23 loc) • 694 B
Markdown
# v3/dropdown
## Usage
To run this codemod in your project using `npx`, you would run the following:
```bash
npx /design-system-codemods v3/dropdown 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 v3/dropdown path/to/some/glob/**/*.hbs
```
## Input
```hbs
<Hds::Dropdown ="left" as |dd|>
<dd.ToggleButton ="Menu left" />
</Hds::Dropdown>
```
## Output
```hbs
<Hds::Dropdown ="bottom-left" as |dd|>
<dd.ToggleButton ="Menu left" />
</Hds::Dropdown>
```