AudienceBoundary. An authored audience marker with a host-controlled visibility boundary.
- Article structure
- Static
- Stability · Initial
- :::postkit-audience-boundary
Audience: Postkit members
This section is available to the intended audience.
Usage.
<AudienceBoundary audience="Postkit members" showLabel>
This section is available to the intended audience.
</AudienceBoundary>Props. Always in step with the code.
| Prop | Type | Default | Description |
|---|---|---|---|
| audienceRequired | string | None | The host-defined audience identifier. |
| fallback | string | "This section is available to a different audience." | Fallback copy for an unauthorized viewer. |
| showLabel | boolean | false | Whether the audience label is visible. |
| Appearance | |||
| size | "sm" | "md" | "lg" | "md" | The component density and type scale. |
| variant | "outline" | "subtle" | "plain" | "subtle" | The component visual treatment. |
Every component also takes unstyled and the part-styling props. Change a default for your whole site with defaults in createPostkit. Part styles
Anatomy. Every part is yours to restyle.
Every part
- root
- label
- content
- fallback
Renderers. One component, everywhere you publish.
- Headless @postkit/reactSupported
- Chakra @postkit/chakraSupported
- Email @postkit/emailAs text
- Astro @postkit/astroStatic
- Web components @postkit/elementsPlanned