Skip to content

Holo Details

The <holo-details> component wraps the native <details>/<summary> elements, giving them design-system styling while retaining native, zero-JS-required disclosure behavior.

Holocron is a Stencil-based web component design system with a “holo” tech aesthetic.
<holo-details summary="What is Holocron?"> Holocron is a Stencil-based web component design system. </holo-details>

Orders ship within 2 business days.

<holo-details summary="Shipping details" open> Orders ship within 2 business days. </holo-details>

| Property | Attribute | Description | Type | Default | | --------- | --------- | ---------------------------------------------------------------------------- | --------- | ----------- | | summary | summary | The text rendered inside the <summary> element. | string | undefined | | open | open | Whether the disclosure is expanded. Reflects to the native open attribute. | boolean | false |

| Slot Name | Description | | --------- | -------------------------------------- | | (default) | The disclosure’s hidden/revealed body. |

| Event | Description | Type | | ------------ | --------------------------------------------------- | ---------------------- | | holoToggle | Emitted when the disclosure is toggled open/closed. | CustomEvent<boolean> |