# htr CLI usage The CLI usage of the HTML to React transform. ## Install ```sh cargo install htr_cli ``` ## Usage Transform props to React (attributes and inline styles are converted, the HTML structure is preserved): ```sh htr transform --html '
' ``` Output: ```html
``` Transform to a full React component (pass a component name): ```sh htr transform --html '
' --component-name 'Main' ``` ## Flags | Flag | Description | | ----------------- | -------------------------------------------------------- | | `--html` | Raw HTML input to transform (required). | | `--component-name`| Component name; when provided, output is a full React component instead of transformed props/markup only. | ## Subcommands - `transform` — transform HTML input to React JSX (props-only by default, or a full component when `--component-name` is supplied).