Skip to content

Commit

Permalink
Update docs comment with usage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcysutton committed Nov 4, 2024
1 parent cae510f commit 9733fc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __docs__/wonder-blocks-tokens/tokens-media-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ const styles = {

You can also use pure width values by importing `breakpoint` from the
`wonder-blocks-tokens` package and accessing the `width` object:
`breakpoint.width.sm`. The pixel values are returned as raw numbers without a unit.
You can interpolate a string to add the `px` unit like so:
`breakpoint.width.sm`. These can be useful for tooling or in CSS where a number value
is needed. Therefore, pixel values are returned without a unit. You can interpolate
a string to add the `px` unit like so:

```js
import {breakpoint} from "@khanacademy/wonder-blocks-tokens";
Expand Down

0 comments on commit 9733fc0

Please sign in to comment.