gadgets
Version:
Reusable React UI widgets - This is my widget library. There are many like it, but this one is mine...
43 lines (42 loc) • 1.13 kB
TypeScript
/**
* A generic control used to group other controls. It creates a
* section tag around the given child component.
*
* ## Examples:
*
* ```javascript
* import {Container} from 'gadgets';
* <Container>
* ...
* </Container>
* ```
*
* ## API
* #### Events
* N/A
*
* #### Styles
* - `ui-container` - placed on the root `<div>` tag
*
* #### Properties
* - `children=null {React.ReactNode}` - The child components that exist
* within the Container.
* - `title="" {string}` - if a title is given, then an `<h1>` block is
* created in front of the section with the given title. By default there is
* no title.
*
* @module Container
*/
/// <reference types="react" />
import { BaseComponent, BaseProps, BaseState } from "../shared";
export interface ContainerProps extends BaseProps {
children?: any;
title?: string;
}
export declare type ContainerState = BaseState;
export declare class Container extends BaseComponent<ContainerProps, ContainerState> {
static readonly defaultProps: ContainerProps;
constructor(props: ContainerProps);
render(): JSX.Element;
}
export default Container;