Skip to content

Commit

Permalink
Fix readme Pixels docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 15, 2024
1 parent 5dc884d commit e903d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ emValue := styles.Em(2.5) // Returns "2.5em"
remValue := styles.Rem(1.5) // Returns "1.5rem"
```

##### `Px(value int) string`
##### `Pixels(value int) string`

This function returns a string representation of the given value with the "px" unit.

```go
pxValue := styles.Px(10) // Returns "10px"
pxValue := styles.Pixels(10) // Returns "10px"
```

##### `Percent(value int) string`
Expand Down

0 comments on commit e903d9c

Please sign in to comment.