Files
community-rule/stories/pages/TextPage.stories.js
T
adilalloandCursor 42d83c8b62 Give builder fields persistent labels, treat description as optional, and validate save-progress email with a real form.
Name stays required; description is a labelled optional textarea. Email uses native validity and form submit. Drop the dead workshop link and fix a few copy errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 11:37:41 -06:00

39 lines
914 B
JavaScript

import { CreateFlowTextFieldScreen } from "../../app/(app)/create/screens/text/CreateFlowTextFieldScreen";
export default {
title: "Pages/Create Flow/Community name",
component: CreateFlowTextFieldScreen,
parameters: { layout: "fullscreen" },
};
export const Default = {
args: {
messageNamespace: "create.community.communityName",
stateField: "title",
maxLength: 48,
required: true,
},
};
export const CommunityDescription = {
args: {
messageNamespace: "create.community.communityContext",
stateField: "communityContext",
maxLength: 200,
mainAlign: "center",
multiline: true,
},
};
export const CommunitySave = {
args: {
messageNamespace: "create.community.communitySave",
stateField: "communitySaveEmail",
maxLength: 254,
mainAlign: "center",
inputType: "email",
showCharacterCount: false,
headerJustification: "center",
},
};