MVP Verson: 0.4.8 beta
Lang Icon
Toggle Icon
Space
Displays a Space box instead of a div.
Default
PreviewCode
Space
With background
PreviewCode
Space
Circle
PreviewCode
circle
Position
PreviewCode
absolute-1
absolute-2
absolute-3
absolute-4
Props
Universal Props
PropTypeAccepted ValuesDescriptionDefault
typestringdefault | inline | circle | triangle | halfCircle | fixed | absolute | relativeSpecifies the Space style. Supports eight predefined types. Other custom styles can be applied using the 'sx' prop.default
sxobjectobjectInline styles for customizing the Space component. Note: Inline styles via the 'style' prop will override 'sx'.{}
onClick(event: React.MouseEvent<HTMLElement, MouseEvent>) => void-Callback function triggered when the Space component is clicked.-
refReact.RefObject<HTMLInputElement | null>-Allows direct access to the DOM node or React component instance.-
classNamestring-Defines the custom CSS class names applied to the Space component.-