Skip to content

Commit

Permalink
Refactor #4391 - For BreadCrumb PTDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasturann committed May 15, 2023
1 parent 9a9c164 commit 2216606
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/doc/breadcrumb/pt/ptdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ export function PTDoc(props) {

const code = {
basic: `
<BreadCrumb model={items} home={home} />
<BreadCrumb
model={items}
home={home}
pt={{
root: { className: 'surface-ground' },
label: ({ props }) => ({
className: props.index === items.length - 1 ? 'font-italic' : undefined
})
}}
/>
`,
javascript: `
import React from 'react';
Expand Down

0 comments on commit 2216606

Please sign in to comment.