-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply prettier
- Loading branch information
Showing
12 changed files
with
421 additions
and
46 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import { DocSectionText } from '../../common/docsectiontext'; | ||
import { DocSectionCode } from '../../common/docsectioncode'; | ||
import { TabMenu } from '../../../lib/tabmenu/TabMenu'; | ||
|
||
export function PTDoc(props) { | ||
const items = [ | ||
{ label: 'Home', icon: 'pi pi-fw pi-home' }, | ||
{ label: 'Calendar', icon: 'pi pi-fw pi-calendar' }, | ||
{ label: 'Edit', icon: 'pi pi-fw pi-pencil' }, | ||
{ label: 'Documentation', icon: 'pi pi-fw pi-file' }, | ||
{ label: 'Settings', icon: 'pi pi-fw pi-cog' } | ||
]; | ||
|
||
const code = { | ||
basic: ` | ||
<TabMenu | ||
model={items} | ||
pt={{ | ||
action: { | ||
className: 'surface-ground' | ||
} | ||
}} | ||
/> | ||
`, | ||
javascript: ` | ||
import React from 'react'; | ||
import { TabMenu } from 'primereact/tabmenu'; | ||
export default function PTDemo() { | ||
const items = [ | ||
{ | ||
label: 'Personal' | ||
}, | ||
{ | ||
label: 'Seat' | ||
}, | ||
{ | ||
label: 'Payment' | ||
}, | ||
{ | ||
label: 'Confirmation' | ||
} | ||
]; | ||
return ( | ||
<div className="card flex justify-content-center"> | ||
<TabMenu | ||
model={items} | ||
pt={{ | ||
action: { | ||
className: 'surface-ground' | ||
} | ||
}} | ||
/> | ||
</div> | ||
) | ||
} | ||
`, | ||
typescript: ` | ||
import React from 'react'; | ||
import { TabMenu } from 'primereact/steps'; | ||
import { MenuItem } from 'primereact/menuitem'; | ||
export default function PTDemo() { | ||
const items: MenuItem[] = [ | ||
{ | ||
label: 'Personal' | ||
}, | ||
{ | ||
label: 'Seat' | ||
}, | ||
{ | ||
label: 'Payment' | ||
}, | ||
{ | ||
label: 'Confirmation' | ||
} | ||
]; | ||
return ( | ||
<div className="card flex justify-content-center"> | ||
<TabMenu | ||
model={items} | ||
pt={{ | ||
action: { | ||
className: 'surface-ground' | ||
} | ||
}} | ||
/> | ||
</div> | ||
) | ||
} | ||
` | ||
}; | ||
|
||
return ( | ||
<> | ||
<DocSectionText {...props}></DocSectionText> | ||
<div className="card flex justify-content-center"> | ||
<TabMenu | ||
model={items} | ||
pt={{ | ||
action: { | ||
className: 'surface-ground' | ||
} | ||
}} | ||
/> | ||
</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,13 @@ | ||
import React from 'react'; | ||
import { DocSectionText } from '../../common/docsectiontext'; | ||
|
||
export const Wireframe = (props) => { | ||
return ( | ||
<> | ||
<DocSectionText {...props} /> | ||
<div> | ||
<img className="w-full" src="https://primefaces.org/cdn/primereact/images/pt/wireframe-placeholder.jpg" alt="tabmenu" /> | ||
</div> | ||
</> | ||
); | ||
}; |
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
Oops, something went wrong.