Inside your body are 206 bones. Each bone plays a very important role in making all the mechanics of your body function properly. If a bone is broken, all the bones around it can’t perform their duty properly.
The stapes, a bone in your inner ear, is the smallest of all your bones. This bone is also sometimes called the stirrup because of its Y shape. Together with the anvil and hammer bones, the stapes helps translate sounds you hear into waves your brain can understand.
The hyoid bone, which is in your throat, is the only bone that doesn’t connect to a joint. The hyoid is responsible for holding your tongue in place.
Controlled
Use the open and onOpenChange props to control the state.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Multiple
Allow multiple accordion items to stay open at once using the multiple prop.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Collapsible
Allow closing all items when one is open using the collapsible prop.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Indicator
Add a custom indicator to accordion triggers.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Orientation
Render the accordion vertically or horizontally using the orientation prop.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Dir
Set the text direction (ltr or rtl) using the dir prop.
Content for item 1
Content for item 2
Content for item 3
Content for item 1
Content for item 2
Content for item 3
Anatomy
Here’s an overview of how the Accordion component is structured in code:
import { Accordion } from '@skeletonlabs/skeleton-react';
export default function Anatomy() {
return (
<Accordion>
<Accordion.Item>
<Accordion.ItemTrigger />
<Accordion.ItemIndicator />
<Accordion.ItemContent />
</Accordion.Item>
</Accordion>
);
}<script lang="ts">
import { Accordion } from '@skeletonlabs/skeleton-svelte';
</script>
<Accordion>
<Accordion.Item>
<Accordion.ItemTrigger />
<Accordion.ItemIndicator />
<Accordion.ItemContent />
</Accordion.Item>
</Accordion>API Reference
Unable to load component information for react/accordion
Unable to load component information for svelte/accordion