@tailor-cms/ce-single-choice-display
v2.1.2
Published
Tailor CMS single choice end-user component
Keywords
Readme
@tailor-cms/ce-single-choice-display
End-user component for the Single Choice content element in Tailor CMS.
Renders the element as learners see it in published content.
Installation
npm install @tailor-cms/ce-single-choice-displayUsage
Content elements are normally registered with Tailor through the element registry rather than imported directly, but the package can be consumed on its own:
import { Display } from '@tailor-cms/ce-single-choice-display';Element
| Property | Value |
| --- | --- |
| Name | Single Choice |
| Type | SINGLE_CHOICE |
| Icon | mdi-order-bool-ascending |
| Composite | Yes |
| Question | Yes |
Packages
This element ships as four packages, published together from the
ce-single-choice repository:
| Package | Role |
| --- | --- |
| @tailor-cms/ce-single-choice-manifest | Shared element definition |
| @tailor-cms/ce-single-choice-edit | Authoring component |
| @tailor-cms/ce-single-choice-display | End-user component |
| @tailor-cms/ce-single-choice-server | Server-side module |
Development
pnpm install
pnpm dev # start the Content Element Kit runtime
pnpm build # build all packages
pnpm test # Playwright end-to-end suiteChanges are released with changesets;
run pnpm changeset to record one.
