UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

20 lines (19 loc) 819 B
import * as React from 'react'; export interface UseSettingsToggleProps { props: React.ButtonHTMLAttributes<HTMLButtonElement>; } /** * The `useSettingsToggle` hook provides state and functions for toggling the settings menu. */ export declare function useSettingsToggle({ props }: UseSettingsToggleProps): { mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & { className: string; onClick: () => void; 'aria-pressed': string; }; }; export type SettingsMenuToggleProps = React.ButtonHTMLAttributes<HTMLButtonElement>; /** * The `SettingsMenuToggle` component is a button that toggles the visibility of the `SettingsMenu` component. */ export declare const SettingsMenuToggle: (props: SettingsMenuToggleProps & React.RefAttributes<HTMLButtonElement>) => React.ReactNode;