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

Add ControlGroup #174

Merged
merged 3 commits into from
Feb 14, 2023
Merged

Add ControlGroup #174

merged 3 commits into from
Feb 14, 2023

Conversation

carson-katri
Copy link
Contributor

Closes #119

<text><%= @number %></text>
<control-group>
  <control-group:label>
    <label system-image="gear">Options</label>
  </control-group:label>
  <control-group:content>
    <%= for item <- 1..5 do %>
      <button phx-click="set_number" phx-value-number={item}>Item #<%= item %></button>
    <% end %>
  </control-group:content>
</control-group>
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-02-09.at.10.45.52.mp4

This will become more useful once we have the toolbar modifier.

@carson-katri
Copy link
Contributor Author

#172 should be merged first, so I can add tests.

@carson-katri carson-katri changed the base branch from main to groupbox February 9, 2023 15:52
Base automatically changed from groupbox to main February 14, 2023 15:03
@carson-katri carson-katri merged commit 279bd75 into main Feb 14, 2023
@carson-katri carson-katri deleted the control-group branch February 14, 2023 15:03
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.

SwiftUI -> Layout Containers -> Groups: ControlGroup
2 participants