@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
48 lines (43 loc) • 1.39 kB
TypeScript
import { SCFeedDiscussionType } from '@selfcommunity/types';
export interface PollSnippetProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* The feed Object
* @default null
*/
feedObj?: SCFeedDiscussionType;
/**
* Hides this component
* @default false
*/
autoHide?: boolean;
/**
* Any other properties
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS PollSnippet component. Learn about the available props and the CSS API.
*
*
#### Import
```jsx
import {PollSnippet} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCPollSuggestionWidget-poll-snippet-root` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCPollSuggestionWidget-poll-snippet-root|Styles applied to the root element.|
|avatar|.SCPollSuggestionWidget-avatar|Styles applied to the avatar element.|
|username|.SCPollSuggestionWidget-username|Styles applied to the username element.|
|title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
|activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
* @param props
*/
export default function PollSnippet(props: PollSnippetProps): JSX.Element;