enterprise (#4617)
Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
This commit is contained in:
18
packages/ui/src/components/sticky-accordion-header.tsx
Normal file
18
packages/ui/src/components/sticky-accordion-header.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Accordion } from "./accordion"
|
||||
import { ParentProps } from "solid-js"
|
||||
|
||||
export function StickyAccordionHeader(
|
||||
props: ParentProps<{ class?: string; classList?: Record<string, boolean | undefined> }>,
|
||||
) {
|
||||
return (
|
||||
<Accordion.Header
|
||||
data-component="sticky-accordion-header"
|
||||
classList={{
|
||||
...(props.classList ?? {}),
|
||||
[props.class ?? ""]: !!props.class,
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</Accordion.Header>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user