Skip to content

Commit 6fd28ee

Browse files
authored
fix section intro docs (#1361)
1 parent 4b5cff7 commit 6fd28ee

2 files changed

Lines changed: 23 additions & 19 deletions

File tree

apps/next-docs/content/components/SectionIntro/react.mdx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,19 @@ The content alignment can be changed using the `align` prop on the root `Section
6565
| `className` | `string` | | `false` | SectionIntro custom class |
6666
| `fullWidth` | `boolean` | | `false` | Fills available space |
6767

68-
### Hero.Label
69-
70-
| name | type | default | description |
71-
| ----------- | ----------------- | ------- | -------------------------------------------- |
72-
| `className` | `string` | | Sets a custom class on the root of the label |
73-
| `id` | `string` | | Sets a custom id on the root of the label |
74-
| `ref` | `React.RefObject` | | Forward a Ref to the underlying DOM node |
75-
76-
Forwards all props from the [Label component](/components/Label), including `size` and `color`.
68+
### SectionIntro.Label
69+
70+
Optional node that can be used to provide a label for the section.
71+
72+
| name | type | default | required | description |
73+
| ---------------- | -------------------- | --------- | -------- | -------------------------------------------- |
74+
| `children` | `ReactNode` | | `true` | Content to be displayed inside the label |
75+
| `animate` | `boolean` | `false` | `false` | Enables the cursor animation |
76+
| `animationDelay` | `number` | `1000` | `false` | Delay before the cursor animation starts |
77+
| `variant` | `'default', 'muted'` | `'muted'` | `false` | Specify alternative text appearance |
78+
| `className` | `string` | | `false` | Sets a custom class on the root of the label |
79+
| `id` | `string` | | `false` | Sets a custom id on the root of the label |
80+
| `ref` | `React.RefObject` | | `false` | Forward a Ref to the underlying DOM node |
7781

7882
### SectionIntro.Heading <Label>Required</Label>
7983

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)