matrix-react-sdk
Version:
SDK for matrix.org using React
24 lines (23 loc) • 742 B
TypeScript
import React, { HTMLAttributes } from "react";
export interface SettingsSectionProps extends HTMLAttributes<HTMLDivElement> {
heading?: string | React.ReactNode;
children?: React.ReactNode;
}
/**
* A section of settings content
* A SettingsTab may contain one or more SettingsSections
* Eg:
* ```
* <SettingsTab>
* <SettingsSection heading="General">
* <SettingsSubsection heading="Profile">
* // profile settings form
* <SettingsSubsection>
* <SettingsSubsection heading="Account">
* // account settings
* <SettingsSubsection>
* </SettingsSection>
* </SettingsTab>
* ```
*/
export declare const SettingsSection: React.FC<SettingsSectionProps>;