Skip to content

Commit

Permalink
Fix typos in documentation (#546)
Browse files Browse the repository at this point in the history
* Fix spelling of "below"

* Add commas
  • Loading branch information
eecavanna committed Jan 15, 2024
1 parent 85c1c5f commit 3af5d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/website/blog/2023-09-19-ladle-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Recent additions include:

## Lessons Learned

The primary catalyst behind Ladle was performance enhancement. Incremental builds transitioned from several seconds or even minutes to mere milliseconds. Startup durations reduced dramatically. And bellow a chart showcases our progression to a 100% Ladle adoption by 08/2023 and its impact on CI build times.
The primary catalyst behind Ladle was performance enhancement. Incremental builds transitioned from several seconds or even minutes to mere milliseconds. Startup durations reduced dramatically. And, below, a chart showcases our progression to a 100% Ladle adoption by 08/2023 and its impact on CI build times.

![Production build times](/img/build-times.png)

Expand Down
4 changes: 2 additions & 2 deletions packages/website/docs/decorators.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: decorators
title: Decorators
---

Ladle supports story decorators, so you can wrap all stories in a file with additional React component(s). This is useful if your stories/components rely on [React Context](https://reactjs.org/docs/context.html) and libraries like `react-router`, `redux` or [next](https://ladle.dev/docs/nextjs/). In the example bellow , we are adding an extra `margin: 3em` to each story:
Ladle supports story decorators, so you can wrap all stories in a file with additional React component(s). This is useful if your stories/components rely on [React Context](https://reactjs.org/docs/context.html) and libraries like `react-router`, `redux` or [next](https://ladle.dev/docs/nextjs/). In the example below, we are adding an extra `margin: 3em` to each story:

```tsx
import type { StoryDefault } from "@ladle/react";
Expand Down Expand Up @@ -39,7 +39,7 @@ MyStory.decorators = [

## Context Parameter

You can also access Ladle's context through the second parameter. This way your decorators can control every aspect of Ladle including the state of controls and other addons:
You can also access Ladle's context through the second parameter. This way, your decorators can control every aspect of Ladle, including the state of controls and other addons:

```tsx
import type { StoryDefault, Story } from "@ladle/react";
Expand Down

0 comments on commit 3af5d80

Please sign in to comment.