// Type definitions for moonstone/Heading import { MarqueeDecoratorProps as moonstone_Marquee_MarqueeDecoratorProps } from "@enact/moonstone/Marquee"; import { SkinnableProps as moonstone_Skinnable_SkinnableProps } from "@enact/moonstone/Skinnable"; import * as React from "react"; type Omit = Pick>; type Merge = Omit> & N; export interface HeadingBaseProps { /** * Adds a horizontal-rule (line) under the component */ showLine?: boolean; /** * The size of the spacing around the Heading. * * Allowed values include: * * `'auto'` - Value is based on the `size` prop for automatic usage. * * `'large'` - Specifically assign the `'large'` spacing. * * `'medium'` - Specifically assign the `'medium'` spacing. * * `'small'` - Specifically assign the `'small'` spacing. * * `'none'` - No spacing at all. Neighboring elements will directly touch the Heading. */ spacing?: "auto" | "large" | "medium" | "small" | "none"; } /** * A labeled Heading component. * * This component is most often not used directly but may be composed within another component as it is within . */ export class HeadingBase extends React.Component< Merge, HeadingBaseProps> > {} export interface HeadingDecoratorProps extends Merge< moonstone_Marquee_MarqueeDecoratorProps, moonstone_Skinnable_SkinnableProps > {} export function HeadingDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export interface HeadingProps extends Merge { /** * Marquee animation trigger. * * Allowed values include: * * `'hover'` - Marquee begins when the pointer enters the component * * `'render'` - Marquee begins when the component is rendered */ marqueeOn?: "hover" | "render"; } /** * A labeled Heading component, ready to use in Moonstone applications. * * `Heading` may be used as a header to group related components. * * Usage: * ``` Related Settings A Setting A Second Setting ``` */ export class Heading extends React.Component< Merge, HeadingProps> > {} export default Heading;