UNPKG

@primer/react-brand

Version:

Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.

24 lines (23 loc) 1.11 kB
import React, { type ReactElement } from 'react'; import { FAQSubheadingProps } from './'; /** * Design tokens */ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css'; import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css'; import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css'; declare function _Heading({ children, className, as, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element; export type FAQGroupProps = React.PropsWithChildren<{ id?: string; defaultSelectedIndex?: number; tabAttributes?: (children: ReactElement, index: number) => Record<string, unknown>; }>; declare function _FAQGroup({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element; /** * FAQGroup component: * {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}. */ export declare const FAQGroup: typeof _FAQGroup & { Heading: typeof _Heading; }; export {};