Skip to content

Commit

Permalink
updates to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
uixmat committed Dec 22, 2024
1 parent c4fe8a4 commit b6c111a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Steps have changed since Onborda v1.2.3 and now fully supports multiple "tours"

| Prop | Type | Description |
|----------------|-------------------------------|---------------------------------------------------------------------------------------|
| `icon` | `React.ReactNode`, `string`, `null` | An icon or element to display alongside the step title. |
| `icon` | `React.ReactNode`, `string`, `null` | Optional. An icon or element to display alongside the step title. |
| `title` | `string` | The title of your step |
| `content` | `React.ReactNode` | The main content or body of the step. |
| `selector` | `string` | A string used to target an `id` that this step refers to. |
Expand Down Expand Up @@ -154,6 +154,7 @@ Steps have changed since Onborda v1.2.3 and now fully supports multiple "tours"
| Property | Type | Description |
|-----------------|-----------------------|---------------------------------------------------------------------------------------|
| `children` | `React.ReactNode` | Your website or application content. |
| `interact` | `boolean` | Optional. Controls whether the onboarding overlay should be interactive. Defaults to `false`. |
| `steps` | `Array[]` | An array of `Step` objects defining each step of the onboarding process. |
| `showOnborda` | `boolean` | Optional. Controls the visibility of the onboarding overlay, eg. if the user is a first time visitor. Defaults to `false`. |
| `shadowRgb` | `string` | Optional. The RGB values for the shadow color surrounding the target area. Defaults to black `"0,0,0"`. |
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface OnbordaContextType {
// Step
export interface Step {
// Step Content
icon: React.ReactNode | string | null;
icon?: React.ReactNode | string | null;
title: string;
content: React.ReactNode;
selector: string;
Expand Down

0 comments on commit b6c111a

Please sign in to comment.