Chapter 635: <MacOSCursor>
Core Idea
Renders a macOS cursor with its hotspot placed at the component origin.
Key Concepts
- Included cursors
- Example
- API
- cursor?
- customCursor?
- className?
- style?
- Timing and display props
Code Examples
export const Cursor = () => {
return (
<MacOSCursor
cursor="pointer"
style={{left: 200, top: 300, scale: 2}}
/>
);
};
- What it demonstrates: Usage pattern for
<MacOSCursor> from the official docs.
Key Takeaways
- Understand included cursors when working with
<MacOSCursor>.
- Understand example when working with
<MacOSCursor>.
- Understand api when working with
<MacOSCursor>.
- Understand cursor? when working with
<MacOSCursor>.
- Understand customcursor? when working with
<MacOSCursor>.
Connects To
- Animated Emoji: related page in the Effects Library section.
- get Available Emoji: related page in the Effects Library section.
- api: related page in the Effects Library section.