@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
29 lines (28 loc) • 1.23 kB
TypeScript
import type { PropsFor } from "../../types.js";
export type AccordionVariant = AccordionProps["variant"];
export type AccordionMode = AccordionProps["mode"];
export type AccordionProps = PropsFor<"div", {
/** Hide outermost border (and set default radius to "none") */
noBorder?: boolean;
/** Alternative 'styled' variant */
variant?: "default" | "styled";
/** Choose between 'default' mode (desktop), 'compact', or 'responsive'
* (compact for screens smaller than 600px, otherwise desktop) */
mode?: "default" | "responsive" | "compact";
/** Control whether multiple Accordion Items can be open at the same time */
multiple?: boolean;
/**
* Change the `border-radius` size of the accordion wrapper (or child
* `<Accordion.Item>` for `variant="styled"`)
* @example
* `"none"` = no border radius
* `"xs"` = `4px`
* `"s"` = `8px`
* `"m"` (or `undefined`) = `12px` (default)
* `"l"` = `16px`
* `"xl"` = `24px`
* */
radius?: "none" | "xs" | "s" | "m" | "l" | "xl" | "full";
}>;
declare const Accordion: import("react").ForwardRefExoticComponent<AccordionProps & import("react").RefAttributes<HTMLDivElement>>;
export default Accordion;