Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose authored Mar 4, 2024
1 parent 69023f8 commit 4cf5c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/ui-and-theme/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Read more about Handling Forms [here](../forms/).

## Checkbox, Radio & Switch

We provide a set of three simple and customizable components including a `Checkbox`, a `Radio` and a `Switch`, witch share the same components under the hood.
We provide a set of three simple and customizable components including a `Checkbox`, a `Radio`, and a `Switch`, which share the same logic under the hood.

The `Checkbox`, `Switch`, and `Radio` components are very similar as they share a common structure and are supposed to handle boolean values, their primary difference being the icon they display and the associated accessibility label. Each component accepts a range of props, allowing us to customize their appearance, behavior, and accessibility features.

Expand Down Expand Up @@ -333,7 +333,7 @@ const App = () => {

By default the component will render a label with the text you passed as label prop and clicking on the label will toggle the component as well.

For rendering a custom Checkbox, you can use the `Checkbox.Root`, `Checkbox.Icon` and `Checkbox.Label` components.
For rendering a custom Checkbox, you can use the `Checkbox.Root`, `Checkbox.Icon`, and `Checkbox.Label` components.

```tsx
import { Checkbox } from '@/ui';
Expand Down

0 comments on commit 4cf5c59

Please sign in to comment.