Skip to content

Commit

Permalink
docs: fix compose/object parameters table (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Sep 9, 2024
1 parent 23f8a25 commit 8678756
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/src/content/docs/reference/Hooks/Formats/predefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,15 +559,14 @@ Example:

Creates a Kotlin file for Compose containing an object with a `val` for each property.

| Param | Type | Description |
| ----- | ---- | ----------- |

| `options` | `Object` | |
| `options.import` | `string[] \| string` | Modules to import. Can be a string or array of strings. Defaults to `['androidx.compose.ui.graphics.Color', 'androidx.compose.ui.unit.*']`. |
| `options.showFileHeader` | `boolean` | Whether or not to include a comment that has the build date. Defaults to `true` |
| Param | Type | Description |
| -------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `options` | `Object` | |
| `options.import` | `string[] \| string` | Modules to import. Can be a string or array of strings. Defaults to `['androidx.compose.ui.graphics.Color', 'androidx.compose.ui.unit.*']`. |
| `options.showFileHeader` | `boolean` | Whether or not to include a comment that has the build date. Defaults to `true` |
| `options.outputReferences` | `boolean \| OutputReferencesFunction` | Whether or not to keep [references](#references-in-output-files) (a -> b -> c) in the output. Defaults to `false`. Also allows passing a function to conditionally output references on a per token basis. |
| `options.className` | `string` | The name of the generated Kotlin object |
| `options.packageName` | `string` | The package for the generated Kotlin object |
| `options.className` | `string` | The name of the generated Kotlin object |
| `options.packageName` | `string` | The package for the generated Kotlin object |

Example:

Expand Down

0 comments on commit 8678756

Please sign in to comment.