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
20 changes: 10 additions & 10 deletions docs/_partials/billing/create-an-organization-pricing-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<html>
<body>
<div style="max-width: 800px; margin: 0 auto; padding: 0 1rem;">
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
</body>
</html>
Expand All @@ -29,7 +29,7 @@

const pricingTableDiv = document.getElementById('pricing-table')

clerk.mountPricingTable(pricingTableDiv, { forOrganizations: true })
clerk.mountPricingTable(pricingTableDiv, { for: 'organization' })
```
</If>

Expand All @@ -40,7 +40,7 @@
export default function PricingPage() {
return (
<div style={{ maxWidth: '800px', margin: '0 auto', padding: '0 1rem' }}>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
)
}
Expand All @@ -55,7 +55,7 @@

<template>
<main>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</main>
</template>
```
Expand All @@ -69,7 +69,7 @@

<template>
<main>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</main>
</template>
```
Expand All @@ -82,7 +82,7 @@
export default function PricingScreen() {
return (
<div style={{ maxWidth: '800px', margin: '0 auto', padding: '0 1rem' }}>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
)
}
Expand All @@ -101,7 +101,7 @@
export default function PricingPage() {
return (
<div style={{ maxWidth: '800px', margin: '0 auto', padding: '0 1rem' }}>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
)
}
Expand All @@ -115,7 +115,7 @@
export default function PricingPage() {
return (
<div style={{ maxWidth: '800px', margin: '0 auto', padding: '0 1rem' }}>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
)
}
Expand All @@ -134,7 +134,7 @@
function PricingPage() {
return (
<div style={{ maxWidth: '800px', margin: '0 auto', padding: '0 1rem' }}>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</div>
)
}
Expand All @@ -152,7 +152,7 @@
export default function PricingPage() {
return (
<View>
<PricingTable forOrganizations />
<PricingTable for="organization" />
</View>
)
}
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/components/billing/pricing-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ All props are optional.

---

- `forOrganizations`
- `boolean`
- `for`
- `'user' | 'organization'`

A boolean that indicates whether the pricing table is for [organizations](/docs/guides/organizations/overview). If `false`, the pricing table will display a list of plans and features that **users** can subscribe to. If `true`, the pricing table will display a list of plans and features that **organizations** can subscribe to. Defaults to `false`.
A string that indicates whether the pricing table is for users or [organizations](/docs/guides/organizations/overview). If `'user'`, the pricing table will display a list of plans and features that **users** can subscribe to. If `'organization'`, the pricing table will display a list of plans and features that **organizations** can subscribe to. Defaults to `'user'`.

---

Expand Down