> ## Documentation Index
> Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# @servicetitan/anvil2-kotlin

> Release notes for @servicetitan/anvil2-kotlin, newest first.

Current version: **0.0.3**. Source: [`packages/anvil2-kotlin/CHANGELOG.md`](https://github.com/servicetitan/hammer/blob/main/packages/anvil2-kotlin/CHANGELOG.md).

## 0.0.3

### Patch Changes

* [#3177](https://github.com/servicetitan/hammer/pull/3177) [`90a5582`](https://github.com/servicetitan/hammer/commit/90a55827390361037513d614153a43c3246cef21) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Icon] Add `Anvil2Icon`, a composable that draws an `Anvil2IconAsset` (or a caller-supplied `Painter`) at `Anvil2IconSize.Small`/`Medium`/`Large` (16/24/32 dp). Tintable glyphs take Material 3 `LocalContentColor` unless a status is set. Adds `Anvil2Status` (`Info`/`Success`/`Warning`/`Danger`), shared by status-aware components: pass `status`, or provide it to a subtree with `ProvideAnvil2Status`. `contentDescription` is required (`null` for decorative), and `ProvideAnvil2IconStyle(size)` sets a default size for a subtree. `anvil2-android-components` now depends on Compose Material 3 (`androidx.compose.material3:material3`, version from the Compose BOM) as an `implementation` dependency

* [#3178](https://github.com/servicetitan/hammer/pull/3178) [`b57b018`](https://github.com/servicetitan/hammer/commit/b57b01877663246552f93e76ea1e885017a2c399) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2IconAsset] Rename the `Anvil2Icon` enum to `Anvil2IconAsset`. Replace `Anvil2Icon` with `Anvil2IconAsset` at each use site (e.g. `Anvil2Icon.ArrowLeft.drawableRes` → `Anvil2IconAsset.ArrowLeft.drawableRes`); entries are unchanged

* [#3150](https://github.com/servicetitan/hammer/pull/3150) [`70ad407`](https://github.com/servicetitan/hammer/commit/70ad407384f1e7ecd2cbb98ea2f0db33975a8ba3) Thanks [@tounsoo](https://github.com/tounsoo)! - \[Anvil2Illustration] Restore the missing leaf in the `EmptyStateCommercialPropertyCareUserCleared` drawable

* [#3170](https://github.com/servicetitan/hammer/pull/3170) [`38263d0`](https://github.com/servicetitan/hammer/commit/38263d0d1ee0acd255444a0816e7d1e0a1ba01bb) Thanks [@ericag1985](https://github.com/ericag1985)! - \[Anvil2Theme] Add `motion.duration.cycle` as a 1000ms repeating-motion duration

* [#3189](https://github.com/servicetitan/hammer/pull/3189) [`0f9b0bf`](https://github.com/servicetitan/hammer/commit/0f9b0bf91046eb238521d5a4de328ac5272aa246) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Button] Add `Anvil2Button`, a composable pill button in six appearances (`Anvil2ButtonAppearance.Primary`/`Secondary`/`Ghost`/`Danger`/`DangerSecondary`/`DangerGhost`) at `Anvil2ButtonSize.Medium`/`Large` (48/64 dp minimum height, growing with the font scale). It takes an optional `icon` placed by `Anvil2ButtonIconPlacement.Leading`/`Trailing`, `enabled`, and `loading`, which keeps the button's width, shows a spinner in place of the content, ignores clicks and adds indeterminate progress semantics. The `iconOnly` overload draws a circular icon-only button whose `contentDescription` is required. `ProvideAnvil2ButtonStyle(appearance, size)` sets a default appearance and size for a subtree; `Modifier.fillMaxWidth()` fills the width

* [#3187](https://github.com/servicetitan/hammer/pull/3187) [`a734331`](https://github.com/servicetitan/hammer/commit/a734331dac32c9b4d1815a43f42464cb750e8231) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Spinner] Add `Anvil2Spinner`, a composable that shows an indeterminate loading arc at `Anvil2SpinnerSize.Small`/`Medium`/`Large` (16/40/80 dp). The arc is `semantic.border.color.accent` by default; `Anvil2SpinnerTint.Inherited` takes Material 3 `LocalContentColor` instead, for a spinner on a filled background. `contentDescription` is required (`null` for decorative; a label adds progress semantics), and `ProvideAnvil2SpinnerStyle(size, tint)` sets a default size and tint for a subtree. With the system "Remove animations" setting on, the arc stops at rest

* [#3196](https://github.com/servicetitan/hammer/pull/3196) [`e073fb0`](https://github.com/servicetitan/hammer/commit/e073fb007895441f2ef6794413a1d1c2dc138a72) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Checkbox] Add `Anvil2Checkbox`, a composable checkbox whose whole row (box, `label` and optional `description`) is one control and one semantics node with `Role.Checkbox`. The two-state overloads take `checked` and `onCheckedChange`; the mixable overloads take an `Anvil2CheckboxMixableState` (`Unchecked`/`Checked`/`Indeterminate`) and call `onClick`, leaving the next state to the caller. A `null` callback makes it read-only. `isError` colors the box critical, and `enabled = false` disables it. The `contentDescription` overloads draw a box with no visible label whose `contentDescription` is required

* Updated dependencies \[[`38263d0`](https://github.com/servicetitan/hammer/commit/38263d0d1ee0acd255444a0816e7d1e0a1ba01bb)]:
  * @servicetitan/carto-tokens\@0.4.8

## 0.0.2

### Patch Changes

* [#3074](https://github.com/servicetitan/hammer/pull/3074) [`9ea5560`](https://github.com/servicetitan/hammer/commit/9ea55607e50921ef54cae8c71d992ef51891c9bd) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Icon, Anvil2Illustration] Add the `anvil2-android-icons` and `anvil2-android-illustrations` artifacts, generated from `@servicetitan/anvil2-icons` and `@servicetitan/anvil2-illustrations`

  * `Anvil2Icon` has one entry per web `Icon*` export, with a `drawableRes` and `isTintable`; tint tintable icons and draw multicolour ones untinted
  * `Anvil2Illustration` has one entry per illustration; each `drawableRes` resolves to its light or dark variant through the `night` resource qualifier
  * `anvil2-android-components` exposes both through `api`

## 0.0.1

### Patch Changes

* [#3011](https://github.com/servicetitan/hammer/pull/3011) [`1b48f54`](https://github.com/servicetitan/hammer/commit/1b48f543c4406f7033db3e29344b7860a091548e) Thanks [@andrewking1235](https://github.com/andrewking1235)! - \[Anvil2Theme] Add initial prerelease of the injectable native theme, replacing the static `Anvil2Tokens` namespace

  * Components read tokens from `LocalAnvil2Theme.current`; the default is `Anvil2Theme.Carto`
  * `LocalAnvil2Dark` overrides the system appearance
  * A theme built from a modified lower tier re-derives every tier above it
  * Font-family and breakpoint tokens are no longer emitted

* [#3064](https://github.com/servicetitan/hammer/pull/3064) [`3e36538`](https://github.com/servicetitan/hammer/commit/3e36538671898869a4298df2fd7563490338dcd2) Thanks [@rollsroyc3](https://github.com/rollsroyc3)! - \[Tokens] Add `text.highlight.backgroundFallback`, a solid stand-in for `text.highlight.background` (web's gradient) on React Native, Swift, and Kotlin, which cannot render it.

  \[Text] Consume `backgroundFallback` for the `highlighted` prop's background instead of a hardcoded `rgba(188, 226, 234, 0.4)` literal.

* Updated dependencies \[[`3e36538`](https://github.com/servicetitan/hammer/commit/3e36538671898869a4298df2fd7563490338dcd2)]:
  * @servicetitan/carto-tokens\@0.4.7


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.