starlight_help/src/content/docs/create-a-poll.mdx
import {Steps, TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro"; import ZulipNote from "../../components/ZulipNote.astro"; import ZulipTip from "../../components/ZulipTip.astro"; import EndComposing from "../include/_EndComposing.mdx"; import PollsExamples from "../include/_PollsExamples.mdx"; import PollsIntro from "../include/_PollsIntro.mdx"; import StartComposing from "../include/_StartComposing.mdx";
import CheckIcon from "~icons/fa/check"; import PencilIcon from "~icons/fa/pencil"; import RemoveIcon from "~icons/fa/remove"; import GripVerticalIcon from "~icons/zulip-icon/grip-vertical"; import PollIcon from "~icons/zulip-icon/poll"; import TrashIcon from "~icons/zulip-icon/trash";
<PollsIntro /> 1. Make sure the compose box is empty.
1. Click the **add poll** (<PollIcon />) icon at the bottom of the compose box.
1. Fill out poll information as desired, and click **Add poll** to insert poll
formatting.
<EndComposing />
</FlattenedSteps>
<ZulipTip>
To reorder the list of options, click and drag the **vertical dots**
(<GripVerticalIcon />) to the left of each
option. To delete an option, click the **delete**
(<TrashIcon />) icon to the right of it.
</ZulipTip>
1. Make sure the compose box is empty.
1. Type `/poll` followed by a space, and the question you want to ask.
1. *(optional)* Type each option on a new line.
<EndComposing />
</FlattenedSteps>
<ZulipTip>
You will be able to add options after the poll is created.
</ZulipTip>