Skip to content

Instantly share code, notes, and snippets.

View eric-horodyski's full-sized avatar

Eric Horodyski eric-horodyski

View GitHub Profile
@eric-horodyski
eric-horodyski / ConsumingComponent.tsx
Created December 16, 2020 21:16
FW React Input Masking - IonInput
const MyComponent: React.FC = () => {
const [myValue, setMyValue] = useState('');
return (
<MaskedIonInput value={myValue} onChange={(v) => setMyValue(v)} />
);
}
@eric-horodyski
eric-horodyski / SlidingSegments.tsx
Last active September 1, 2023 10:54
Ionic Framework React: Sliding Segments
import {
IonSegment,
IonSegmentButton,
IonLabel,
IonSlide,
IonSlides,
} from "@ionic/react";
import React, { useRef, useState } from "react";
const SlidingSegments: React.FC<ContainerProps> = () => {