Skip to content

Commit

Permalink
release v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
benvp committed Apr 6, 2023
1 parent c931913 commit a5b9564
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [v0.2.0] (2022-04-06)

## Improvements

* Add `.formatter.exs` to files to allow `import_deps: [:cva]`.

## [v0.2.0] (2022-12-06)

### Improvements
Expand All @@ -12,24 +18,24 @@ All notable changes to this project will be documented in this file.
variant :disabled,
[true: "disabled-class", false: "enabled-class"],
default: false

# or

variant :disabled,
[true: "disabled-class"],
default: nil

def button(assigns) do
~H"""
<button class={@cva_class} disabled={@disabled}>
<%= render_slot(@inner_block) %>
</button>
"""
end

# ... where you use that component

<.button disabled>Click me</.button>
<.button disabled>Click me</.button>

# -> <button class="disabled-class" disabled>Click me</button>
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule CVA.MixProject do
use Mix.Project

@version "0.2.0"
@version "0.2.1"

def project do
[
Expand Down

0 comments on commit a5b9564

Please sign in to comment.