Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add examples for JSON string for inline props #1882

Merged
merged 5 commits into from Feb 23, 2023

Conversation

WolfgangDrescher
Copy link
Contributor

πŸ”— Linked issue

#1494, #1573, #1492

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR adds examples for arrays and objects that can be passed to props as JSON string with the inline method. Additionally I added a small section with an explanation that multiple props can be passed with a space as a separator as there has been some confusion about this in multiple issues and discussions.

This was not yet documented and only mentioned by @farnabaz in the linked issue.

Also see this discussion about a similar problem: #1881

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@codesandbox
Copy link

codesandbox bot commented Feb 3, 2023

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@nuxt-studio-dev
Copy link

nuxt-studio-dev bot commented Feb 3, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
content Edit on Studio β†—οΈŽ View Live Preview 92b100c

@nuxt-studio
Copy link

nuxt-studio bot commented Feb 3, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
content Edit on Studio β†—οΈŽ View Live Preview e20aa99

@netlify
Copy link

netlify bot commented Feb 3, 2023

❌ Deploy Preview for nuxt-content failed.

Name Link
πŸ”¨ Latest commit 92b100c
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt-content/deploys/63f78ea78f76480008e4b67d

@nuxt-studio
Copy link

nuxt-studio bot commented Feb 3, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
content Edit on Studio β†—οΈŽ View Live Preview e20aa99

Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❀️

@farnabaz farnabaz merged commit 1399d82 into nuxt:main Feb 23, 2023
@farnabaz farnabaz mentioned this pull request Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants