Skip to content

Commit

Permalink
first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsycamore committed Sep 6, 2023
1 parent 420b1c4 commit c1a6d3e
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The following code snippet applies a CSS class called `my-badge` to the badge sl

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Note that it also uses the `useFormControlContext` hook in order to pass props t

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The following code snippet applies a CSS class called `my-input` to the input sl

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
6 changes: 3 additions & 3 deletions docs/data/base/components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/

Menus are implemented using a collection of related components:

- [Dropdown]() -
- [Dropdown]() -
- [Menu]() -
- [Menu Item]() -
- [MenuButton]() -
- [Menu Item]() -
- [MenuButton]() -

{{"demo": "MenuIntroduction", "defaultCodeOpen": false, "bg": "gradient"}}

Expand Down
6 changes: 3 additions & 3 deletions docs/data/base/components/number-input/number-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ For an open-ended range, define only `min` or `max`:
<NumberInput min={0} />
```

Use the `step` prop to define the granularity of the change in value when incrementing or decrementing.
Use the `step` prop to define the granularity of the change in value when incrementing or decrementing.
For example, if `min={0}` and `step={2}`, valid values for the component would be 0, 2, 4, and on, since the value can only be changed in increments of 2.

```jsx
Expand All @@ -64,12 +64,12 @@ For example, if `min={0}` and `step={2}`, valid values for the component would b
Support for decimal values or step sizes isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/material-ui/issues/38518) to see it arrive sooner.
:::

When the input field is in focus, you can enter values that fall outside the valid range.
When the input field is in focus, you can enter values that fall outside the valid range.
The value will be clamped based on `min`, `max` and `step` once the input field is blurred.

Holding down the <kbd>Shift</kbd> key when interacting with the stepper buttons applies a multipler (default 10x) to the value change of each step.

This can be customized with the `shiftMultiplier` prop.
This can be customized with the `shiftMultiplier` prop.
In the following snippet, if <kbd>Shift</kbd> is held when clicking the increment button, the value will change from 0, to 5, to 10, and on.

```jsx
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/select/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ To instead render the popup where the component is defined, override the `disabl

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/slider/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The following code snippet applies a CSS class called `my-rail` to the rail slot

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down Expand Up @@ -177,7 +177,7 @@ To let users set the start and end of a range on a Slider, provide an array of v

### Value label

A label for the value can be rendered around the thumb by using the optional `slots` prop with the `valueLabel` slot.
A label for the value can be rendered around the thumb by using the optional `slots` prop with the `valueLabel` slot.
These are typical use cases for showing the value label:

- always
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/snackbar/snackbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ See [Overriding component structure](/base-ui/guides/overriding-component-struct

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic to the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic to the unstyled component.
This way, you can safely provide the custom component's props directly on the component:

```tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/switch/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following code snippet applies a CSS class called `my-thumb` to the thumb sl

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ The following code snippet applies a CSS class called `my-spacer` to the spacer

### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/tabs/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ When vertical, you must set `orientation="vertical"` on the `<Tabs />` component

### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component.
This way, you can safely provide the custom root's props directly on the component:

```tsx
Expand Down

0 comments on commit c1a6d3e

Please sign in to comment.