huntabyte / bits-ui

The headless components for Svelte.
https://bits-ui.com
MIT License
953 stars 70 forks source link

docs: Update descriptions and structure for Toggle/Group #589

Closed ronkeiser closed 4 days ago

ronkeiser commented 4 days ago

Currently, the descriptions for Toggle and Toggle Group are reversed!

image image

Also, the structure for Toggle includes Toggle.Thumb and Toggle.Input components which do not exist:

<script lang="ts">
  import { Toggle } from "bits-ui";
</script>

<Toggle.Root>
  <Toggle.Thumb />
  <Toggle.Input />
</Toggle.Root>

This PR switches the descriptions and removes the extraneous components from the structure:

<script lang="ts">
  import { Toggle } from "bits-ui";
</script>

<Toggle.Root/>
changeset-bot[bot] commented 4 days ago

⚠️ No Changeset found

Latest commit: 5b0523f7678c2a7170798b466453281ac2a53f46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 4 days ago
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview 5b0523f7678c2a7170798b466453281ac2a53f46