Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/usage/v8/backdrop/styling/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Example() {
</div>
<div id="box">
<IonCheckbox color="light"></IonCheckbox>
<IonButton class="ion-margin-start" color="light">
<IonButton className="ion-margin-start" color="light">
Clickable
</IonButton>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Example() {
</IonBreadcrumb>
</IonBreadcrumbs>

<IonLabel class="ion-margin-top">Icons at End</IonLabel>
<IonLabel className="ion-margin-top">Icons at End</IonLabel>
<IonBreadcrumbs>
<IonBreadcrumb href="#home">
Home
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/content/scroll-events/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Example() {
onIonScrollStart={handleScrollStart}
onIonScroll={handleScroll}
onIonScrollEnd={handleScrollEnd}
class="ion-padding"
className="ion-padding"
>
<h1>Scroll to fire the scroll events and view them in the console.</h1>

Expand Down
10 changes: 5 additions & 5 deletions static/usage/v8/grid/horizontal-alignment/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,39 @@ function Example() {
<>
<b>Columns aligned at the start</b>
<IonGrid>
<IonRow class="ion-justify-content-start">
<IonRow className="ion-justify-content-start">
<IonCol size="3">1</IonCol>
<IonCol size="3">2</IonCol>
</IonRow>
</IonGrid>

<b>Columns aligned at the center</b>
<IonGrid>
<IonRow class="ion-justify-content-center">
<IonRow className="ion-justify-content-center">
<IonCol size="3">1</IonCol>
<IonCol size="3">2</IonCol>
</IonRow>
</IonGrid>

<b>Columns aligned at the end</b>
<IonGrid>
<IonRow class="ion-justify-content-end">
<IonRow className="ion-justify-content-end">
<IonCol size="3">1</IonCol>
<IonCol size="3">2</IonCol>
</IonRow>
</IonGrid>

<b>Columns aligned with space around</b>
<IonGrid>
<IonRow class="ion-justify-content-around">
<IonRow className="ion-justify-content-around">
<IonCol size="3">1</IonCol>
<IonCol size="3">2</IonCol>
</IonRow>
</IonGrid>

<b>Columns aligned with space between</b>
<IonGrid>
<IonRow class="ion-justify-content-between">
<IonRow className="ion-justify-content-between">
<IonCol size="3">1</IonCol>
<IonCol size="3">2</IonCol>
</IonRow>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/grid/vertical-alignment/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Example() {
<>
<b>Columns aligned at the top</b>
<IonGrid>
<IonRow class="ion-align-items-start">
<IonRow className="ion-align-items-start">
<IonCol>1</IonCol>
<IonCol>2</IonCol>
<IonCol>3</IonCol>
Expand All @@ -21,7 +21,7 @@ function Example() {

<b>Columns aligned at the center</b>
<IonGrid>
<IonRow class="ion-align-items-center">
<IonRow className="ion-align-items-center">
<IonCol>1</IonCol>
<IonCol>2</IonCol>
<IonCol>3</IonCol>
Expand All @@ -33,7 +33,7 @@ function Example() {

<b>Columns aligned at the bottom</b>
<IonGrid>
<IonRow class="ion-align-items-end">
<IonRow className="ion-align-items-end">
<IonCol>1</IonCol>
<IonCol>2</IonCol>
<IonCol>3</IonCol>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import './main.css';
function Example() {
return (
<>
<IonInputOtp class="custom" separators="all">
<IonInputOtp className="custom" separators="all">
Didn't get a code? <a href="#">Resend the code</a>
</IonInputOtp>
<IonInputOtp fill="solid" class="custom" separators="all">
<IonInputOtp fill="solid" className="custom" separators="all">
Didn't get a code? <a href="#">Resend the code</a>
</IonInputOtp>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Example() {
<IonInput
aria-label="Custom input"
placeholder="Custom input"
class="custom"
className="custom"
helperText="Helper text"
counter={true}
maxlength={20}
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/item/basic/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Example() {
</IonItem>

<IonItem>
<IonLabel class="ion-text-nowrap">
<IonLabel className="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</IonLabel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Example() {
</IonItem>
</IonList>

<IonNote color="medium" class="ion-margin-horizontal">
<IonNote color="medium" className="ion-margin-horizontal">
Your comments will be kept anonymous and will only be used to improve the reliability of our products.
</IonNote>
</IonContent>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/label/item/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Example() {
</IonItem>

<IonItem>
<IonLabel class="ion-text-wrap">
<IonLabel className="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</IonLabel>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/modal/custom-dialogs/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Example() {
<IonTitle>App</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<IonButton id="open-custom-dialog" expand="block">
Open Custom Dialog
</IonButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import PageTwo from './page-two';
function PageOne({ nav }: { nav: HTMLIonNavElement }) {
const navigateToPageTwo = () => nav.push(PageTwo, { nav });
return (
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page One</h1>
<IonButton onClick={navigateToPageTwo}>Go to Page Two</IonButton>
</IonContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function PageThree({ nav }: { nav: HTMLIonNavElement }) {
const navigateToRoot = () => nav.popToRoot();

return (
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page Three</h1>
<IonButton onClick={navigateBack}>Go Back</IonButton>
<IonButton onClick={navigateToRoot}>Go to Root</IonButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function PageTwo({ nav }: { nav: HTMLIonNavElement }) {
const navigateToPageThree = () => nav.push(PageThree, { nav });

return (
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page Two</h1>
<IonButton onClick={navigateToPageThree}>Go to Page Three</IonButton>
</IonContent>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/nav/nav-link/react/page_one_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function PageOne() {
<IonTitle>Page One</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page One</h1>
<IonNavLink routerDirection="forward" component={() => <PageTwo />}>
<IonButton>Go to Page Two</IonButton>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/nav/nav-link/react/page_three_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function PageThree() {
<IonTitle>Page Three</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page Three</h1>
</IonContent>
</>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/nav/nav-link/react/page_two_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function PageTwo() {
<IonTitle>Page Two</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent class="ion-padding">
<IonContent className="ion-padding">
<h1>Page Two</h1>
<IonNavLink routerDirection="forward" component={() => <PageThree />}>
<IonButton>Go to Page Three</IonButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ function Example() {
<div className="container">
<IonButton id="top-center">Side=Top, Alignment=Center</IonButton>
<IonPopover trigger="top-center" side="top" alignment="center">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>

<IonButton id="bottom-start">Side=Bottom, Alignment=Start</IonButton>
<IonPopover trigger="bottom-start" side="bottom" alignment="start">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>

<IonButton id="left-start">Side=Left, Alignment=Start</IonButton>
<IonPopover trigger="left-start" side="left" alignment="start">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>

<IonButton id="right-end">Side=Right, Alignment=End</IonButton>
<IonPopover trigger="right-end" side="right" alignment="end">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions static/usage/v8/popover/customization/sizing/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function Example() {
<>
<IonButton id="auto-trigger">Size=Auto</IonButton>
<IonPopover trigger="auto-trigger" size="auto">
<IonContent class="ion-padding">Hello!</IonContent>
<IonContent className="ion-padding">Hello!</IonContent>
</IonPopover>

<IonButton id="cover-trigger">Size=Cover</IonButton>
<IonPopover trigger="cover-trigger" size="cover">
<IonContent class="ion-padding">Hello!</IonContent>
<IonContent className="ion-padding">Hello!</IonContent>
</IonPopover>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/popover/performance/mount/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Example() {
<IonContent>
<IonButton id="open-popover">Open Popover</IonButton>
<IonPopover keepContentsMounted={true} trigger="open-popover">
<IonContent class="ion-padding">This content was mounted as soon as the popover was created.</IonContent>
<IonContent className="ion-padding">This content was mounted as soon as the popover was created.</IonContent>
</IonPopover>
</IonContent>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Example() {
<>
<IonButton onClick={openPopover}>Click Me</IonButton>
<IonPopover ref={popover} isOpen={popoverOpen} onDidDismiss={() => setPopoverOpen(false)}>
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>
</>
);
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/popover/presenting/inline-trigger/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ function Example() {
<>
<IonButton id="click-trigger">Left-Click Me</IonButton>
<IonPopover trigger="click-trigger" triggerAction="click">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>

<IonButton id="context-menu-trigger">Right-Click Me</IonButton>
<IonPopover trigger="context-menu-trigger" triggerAction="context-menu">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>

<IonButton id="hover-trigger">Hover Over Me</IonButton>
<IonPopover trigger="hover-trigger" triggerAction="hover">
<IonContent class="ion-padding">Hello World!</IonContent>
<IonContent className="ion-padding">Hello World!</IonContent>
</IonPopover>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/refresher/pull-start-end-events/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Example() {
</IonToolbar>
</IonHeader>

<IonContent class="ion-padding">
<IonContent className="ion-padding">
<IonRefresher
id="refresher"
slot="fixed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IonSearchbar } from '@ionic/react';
import './main.css';

function Example() {
return <IonSearchbar showCancelButton="focus" class="custom"></IonSearchbar>;
return <IonSearchbar showCancelButton="focus" className="custom"></IonSearchbar>;
}
export default Example;
```
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function AppTypeahead(props: TypeaheadProps) {
</IonToolbar>
</IonHeader>

<IonContent color="light" class="ion-padding">
<IonContent color="light" className="ion-padding">
<IonList id="modal-list" inset={true}>
{filteredItems.map((item) => (
<IonItem key={item.value}>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v8/textarea/theming/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Example() {
<IonTextarea
aria-label="Custom textarea"
placeholder="Type something here"
class="custom"
className="custom"
helperText="Helper text"
counter={true}
maxlength={100}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { personCircle, personCircleOutline, sunny, sunnyOutline } from 'ionicons
function Example() {
return (
<>
<IonHeader class="ion-no-border">
<IonHeader className="ion-no-border">
<IonToolbar>
<IonButtons slot="start">
<IonBackButton default-href="#"></IonBackButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Example() {

return (
<>
<IonHeader class="ion-no-border">
<IonHeader className="ion-no-border">
<IonToolbar>
<IonButtons slot="start">
<IonBackButton default-href="#"></IonBackButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import './main.css';
function Example() {
return (
<>
<IonHeader class="ion-no-border">
<IonHeader className="ion-no-border">
<IonToolbar>
<IonButtons slot="start">
<IonBackButton default-href="#"></IonBackButton>
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v9/backdrop/styling/react/main_tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Example() {
</div>
<div id="box">
<IonCheckbox color="light"></IonCheckbox>
<IonButton class="ion-margin-start" color="light">
<IonButton className="ion-margin-start" color="light">
Clickable
</IonButton>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Example() {
</IonBreadcrumb>
</IonBreadcrumbs>

<IonLabel class="ion-margin-top">Icons at End</IonLabel>
<IonLabel className="ion-margin-top">Icons at End</IonLabel>
<IonBreadcrumbs>
<IonBreadcrumb href="#home">
Home
Expand Down
2 changes: 1 addition & 1 deletion static/usage/v9/content/scroll-events/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Example() {
onIonScrollStart={handleScrollStart}
onIonScroll={handleScroll}
onIonScrollEnd={handleScrollEnd}
class="ion-padding"
className="ion-padding"
>
<h1>Scroll to fire the scroll events and view them in the console.</h1>

Expand Down
Loading
Loading