infinitered / ir-docs

Omnibus Documentation for Infinite Red Opensource
18 stars 5 forks source link

feat: upgrade to 3.2.1 #46

Open frankcalise opened 2 months ago

frankcalise commented 2 months ago

Description

Upgrades docusaurus to 3.2.1 to take advantage of https://docusaurus.io/blog/releases/3.2#mdx-partials-table-of-contents

You can now create reusable partials such as _toggle_props.mdx, and import them into another markdown page. This update will incorporate those headings into the right sidebar nav (whereas before, it didn't)

Screenshot

image

Example Code

---
sidebar_position: 32
---

import ToggleProps from './\_toggle_props.mdx';

# Checkbox

The `Checkbox` component provides a simple way to collect user input for a boolean value.

## Checkbox Props

### `icon`

The `icon` is a prop for the checkbox variant that allows you to customize the icon used for the "on" state.

```tsx
<Checkbox icon="ladybug" />
\```

<ToggleProps componentName="Checkbox" />
frankcalise commented 2 months ago

@markrickert yes sir that is correct!