forked from primefaces/primereact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab6dd73
commit 011f8a5
Showing
9 changed files
with
101 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import { Ripple } from '../../lib/ripple/Ripple'; | ||
import { DocSectionCode } from '../common/docsectioncode'; | ||
import { DocSectionText } from '../common/docsectiontext'; | ||
|
||
export function BasicDoc(props) { | ||
const code = { | ||
basic: ` | ||
<div className="bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold p-ripple"> | ||
Click Me | ||
<Ripple /> | ||
</div> | ||
`, | ||
javascript: ` | ||
import React from 'react'; | ||
import PrimeReact from 'primereact/api'; | ||
import { Ripple } from 'primereact/ripple'; | ||
export default function BasicDemo() { | ||
return ( | ||
<div className="card flex justify-content-center align-items-center"> | ||
<div className="bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold p-ripple"> | ||
Click Me | ||
<Ripple /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
`, | ||
typescript: ` | ||
import React from 'react'; | ||
import PrimeReact from 'primereact/api'; | ||
import { Ripple } from 'primereact/ripple'; | ||
export default function BasicDemo() { | ||
return ( | ||
<div className="card flex justify-content-center align-items-center"> | ||
<div className="bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold p-ripple"> | ||
Click Me | ||
<Ripple /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
` | ||
}; | ||
|
||
return ( | ||
<> | ||
<DocSectionText {...props}> | ||
<p> | ||
Ripple is enabled by adding the component as a child and applying <i>p-ripple</i> class to the element. | ||
</p> | ||
</DocSectionText> | ||
<div className="card flex justify-content-center align-items-center"> | ||
<div className="bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold p-ripple"> | ||
Click Me | ||
<Ripple /> | ||
</div> | ||
</div> | ||
<DocSectionCode code={code} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Link from 'next/link'; | ||
import { DocSectionCode } from '../common/docsectioncode'; | ||
import { DocSectionText } from '../common/docsectiontext'; | ||
|
||
export function ConfigurationDoc(props) { | ||
const code = { | ||
basic: ` | ||
PrimeReact.ripple = true; | ||
` | ||
}; | ||
|
||
return ( | ||
<> | ||
<DocSectionText {...props}> | ||
<p> | ||
To start with, Ripple needs to be enabled globally. See the <Link href="/ripple">Configuration API</Link> for details. | ||
</p> | ||
</DocSectionText> | ||
<DocSectionCode code={code} hideToggleCode import hideCodeSandbox hideStackBlitz /> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.