@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
72 lines (63 loc) • 2.23 kB
TypeScript
import { WidgetProps } from '../Widget';
import { CacheStrategies } from '@selfcommunity/utils';
import { UserProps } from '../User';
import { BaseDialogProps } from '../../shared/BaseDialog';
import { VirtualScrollerItemProps } from '../../types/virtualScroller';
export interface UserConnectionsRequestsSentWidgetProps extends VirtualScrollerItemProps, WidgetProps {
/**
* The user id
* @default null
*/
userId: number;
/**
* Hides this component
* @default false
*/
autoHide?: boolean;
/**
* Limit the number of categories to show
* @default false
*/
limit?: number;
/**
* Props to spread to single user object
* @default empty object
*/
UserProps?: UserProps;
/**
* Caching strategies
* @default CacheStrategies.CACHE_FIRST
*/
cacheStrategy?: CacheStrategies;
/**
* Props to spread to followers users dialog
* @default {}
*/
DialogProps?: BaseDialogProps;
/**
* Other props
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS User Connections Requests Widget component. Learn about the available props and the CSS API.
*
*
* This component renders the list of connections requests sent of the authenticated user.
#### Import
```jsx
import {UserConnectionsRequestsSentWidget} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCUserConnectionsRequestsSentWidget` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCUserConnectionsRequestsSentWidget-root|Styles applied to the root element.|
|title|.SCUserConnectionsRequestsSentWidget-title|Styles applied to the title element.|
|noResults|.SCUserConnectionsRequestsSentWidget-no-results|Styles applied to no results section.|
|connectionsItem|.SCUserConnectionsRequestsSentWidget-connections-item|Styles applied to connection item element.|
|showMore|.SCUserConnectionsRequestsSentWidget-show-more|Styles applied to show more button element.|
* @param inProps
*/
export default function UserConnectionsRequestsSentWidget(inProps: UserConnectionsRequestsSentWidgetProps): JSX.Element;