Skip to content

Conversation

@miikakokkonen
Copy link

@miikakokkonen miikakokkonen commented Feb 9, 2025

📑 Description

Adds a parameter to uiHelpers that is used to create the initial state. This way

<script>
const nav= uiHelpers();
nav.isOpen.isOpen = true
</script>

// nav should start open
<Navbar navStatus={nav.isOpen} breakPoint="md" hamburgerMenu={false}>

turns into

<script>
const nav= uiHelpers(true);
</script>

// nav should start open
<Navbar navStatus={nav.isOpen} breakPoint="md" hamburgerMenu={false}>

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

@vercel
Copy link

vercel bot commented Feb 9, 2025

@miikakokkonen is attempting to deploy a commit to the Shinichi Okada's projects Team on Vercel.

A member of the Team first needs to authorize it.

@miikakokkonen miikakokkonen marked this pull request as ready for review February 9, 2025 22:10
@miikakokkonen miikakokkonen changed the title feat: Add initial value to uiHelper function feat: Add initial value to uiHelpers function Feb 9, 2025
@vercel
Copy link

vercel bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-5-ui-lib ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 7:19am

@miikakokkonen
Copy link
Author

Is there interest in this functionality?
Every now and then I found myself setting UIs open programmatically when creating them so i wanted to contribute this possible shortcut.

orbitadajogatina added a commit to orbitadajogatina/odj-svelte-ui that referenced this pull request Mar 9, 2025
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.

1 participant