Skip to main content

EventForm

Interfaces

EventFormProps

Extends

  • BaseDialogProps

Indexable

[p: string]: any

Properties

PropertyTypeDescriptionOverridesInherited from
DialogContentProps?DialogContentPropsDialog content props

Default
{dividers: !isMobile}
BaseDialogProps.DialogContentPropsBaseDialogProps.DialogContentProps
actions?ReactNodeActions for the dialogBaseDialogProps.actionsBaseDialogProps.actions
className?stringOverrides or extends the styles applied to the component.

Default
null
BaseDialogProps.classNameBaseDialogProps.className
event?SCEventTypeEvent Object

Default
null
--
onClose?() => voidOn dialog close callback function

Default
null
BaseDialogProps.onCloseBaseDialogProps.onClose
onSuccess?(data: SCEventType) => voidOn success callback function

Default
null
--
open?booleanOpen dialog

Default
true
BaseDialogProps.openBaseDialogProps.open
subtitle?anyDialog subtitle

Default
''
BaseDialogProps.subtitleBaseDialogProps.subtitle
title?anyDialog title

Default
''
BaseDialogProps.titleBaseDialogProps.title

Functions

EventForm()

EventForm(inProps): JSX.Element

API documentation for the Community-JS Event Form component. Learn about the available props and the CSS API.

Import

import {EventForm} from '@selfcommunity/react-ui';

Component Name

The name SCEventForm can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCEventForm-rootStyles applied to the root element.
active.SCEventForm-activeStyles applied to the active element.
title.SCEventForm-titleStyles applied to the title element.
cover.SCEventForm-coverStyles applied to the cover field.
form.SCEventForm-formStyles applied to the form element.
switch.SCEventForm-switchStyles applied to the switch element.
switchLabel.SCEventForm-switch-labelStyles applied to the switchLabel element.
name.SCEventForm-nameStyles applied to the name field.
description.SCEventForm-descriptionStyles applied to the description field.
content.SCEventForm-contentStyles applied to the element.
privacySection.SCEventForm-privacy-sectionStyles applied to the privacy section.
privacySectionInfo.SCEventForm-privacy-section-infoStyles applied to the privacy info section.
error.SCEventForm-errorStyles applied to the error elements.

Parameters

ParameterTypeDescription
inPropsEventFormProps

Returns

JSX.Element

Source

packages/react-ui/src/components/EventForm/EventForm.tsx:166