Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added examples for different components#1570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
FalkWolsky merged 2 commits intodevfromdoc/existing_components
Mar 22, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,6 +28,24 @@ export default function ButtonExample() {
config={{type:"default",text:trans("componentDoc.submit"),disabled:true}}
compFactory={ButtonComp}
/>
<Example
title="Hiding the Button component"
width={120}
config={{type:"default",text:trans("componentDoc.submit"),hidden:true}}
compFactory={ButtonComp}
/>
<Example
title="Prefix Icon"
width={120}
config={{type:"default",text:trans("componentDoc.submit"),prefixIcon:"/icon:solid/book",}}
compFactory={ButtonComp}
/>
<Example
title="Suffix Icon"
width={120}
config={{type:"default",text:trans("componentDoc.submit"),suffixIcon :"/icon:solid/book-open-reader",}}
compFactory={ButtonComp}
/>
</ExampleGroup>

<ExampleGrouptitle={trans("componentDoc.style")}>
Expand DownExpand Up@@ -55,6 +73,28 @@ export default function ButtonExample() {
}}
compFactory={ButtonComp}
/>
<Example
title="Custom Styling"
width={180}
config={{
style:{
"background":"linear-gradient(90deg, #fa709a 0%, #fee140 100%)",
"padding":"10px",
"text":"#222222",
"textTransform":"Uppercase",
"textDecoration":"underline",
"textSize":"16px",
"textWeight":"bold",
"fontFamily":"Courier New",
"fontStyle":"italic",
"border":"#222222",
"borderStyle":"solid",
"radius":"10px",
"borderWidth":"2px"
},
}}
compFactory={ButtonComp}
/>
</ExampleGroup>
</>
);
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,9 +32,11 @@ export default function DropdownExample() {
};
return(
<>

<ExampleGroup
title={trans("componentDoc.basicUsage")}
description={trans("componentDoc.basicDemoDescription")}
description="The Following Examples Show the Basic Usage of the Dropdown Component."

>
<Example
title={trans("componentDoc.default")}
Expand All@@ -55,14 +57,99 @@ export default function DropdownExample() {
blackListConfig={blackListConfig}
compFactory={DropdownComp}
/>
<Example
title="Hiding the Dropdown component"
width={120}
config={{
type:"default",
text:trans("componentDoc.menu"),
hidden:true,
options:options,
}}
blackListConfig={blackListConfig}
compFactory={DropdownComp}
/>
</ExampleGroup>

<ExampleGrouptitle={trans("componentDoc.style")}>
<ExampleGroup
title="Layout"
description="The Following Examples Show the Layout options of the Dropdown Component."
>
<Example
title="Display Dropdown without the Dots"
width={120}
config={{
onlyMenu:true,
}}
compFactory={DropdownComp}
/>
<Example
title="Show Dropdown options on Hover"
width={120}
config={{
onlyMenu:true,
triggerMode:"hover",
}}
compFactory={DropdownComp}
/>
<Example
title={trans("componentDoc.onlyMenu")}
title="Show Dropdown options on Click"
width={120}
config={{
onlyMenu:true,
triggerMode:"click",
}}
compFactory={DropdownComp}
/>
</ExampleGroup>

<ExampleGroup
title="Styling Properties"
description="The Following Examples Show the different Styling properties on the Dropdown Component."
>
<Example
title="Background Color"
width={120}
config={{
style:{
"background":"linear-gradient(135deg, #72afd3 0%, #96e6a1 100%)",
},
}}
compFactory={DropdownComp}
/>
<Example
title="Margin & Padding"
width={120}
config={{
style:{
"background":"linear-gradient(135deg, #00FFFF 0%, #00FFFF 100%)",
"margin":"10px",
"padding":"10px",
},
}}
compFactory={DropdownComp}
/>
<Example
title="Border Radius"
width={120}
config={{
style:{
"background":"linear-gradient(135deg, #00FFFF 0%, #00FFFF 100%)",
"radius":"15px"
},
}}
compFactory={DropdownComp}
/>
<Example
title="Text Properties"
width={120}
config={{
style:{
"text":"#E67373",
"textSize":"25px",
"textWeight":"bold",
"fontStyle":"italic",
},
}}
compFactory={DropdownComp}
/>
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,13 +31,15 @@ export default function FloatButtonExample() {
>
<Example
title="A Simple Float Button"
height={150}
config={{
buttons:buttons,
}}
compFactory={FloatButtonComp}
/>
<Example
title="Hiding the Float Button"
height={150}
config={{
buttons:buttons,
hidden:true,
Expand All@@ -46,6 +48,7 @@ export default function FloatButtonExample() {
/>
<Example
title="Different Icon on Float Button"
height={150}
config={{
buttons:buttons,
icon:"/icon:solid/align-justify",
Expand All@@ -54,6 +57,7 @@ export default function FloatButtonExample() {
/>
<Example
title="Button Theme - Default"
height={150}
config={{
buttons:buttons,
buttonTheme:"default",
Expand All@@ -66,12 +70,107 @@ export default function FloatButtonExample() {
/>
<Example
title="Button Shape - Square"
height={150}
config={{
buttons:buttons,
shape:"square",
}}
compFactory={FloatButtonComp}
/>
<Example
title="Show Badge - True"
height={150}
config={{
buttons:buttons,
dot:true,
}}
compFactory={FloatButtonComp}
/>
<Example
title="Show Badge - False"
height={150}
config={{
buttons:buttons,
}}
compFactory={FloatButtonComp}
/>
</ExampleGroup>

<ExampleGroup
title="Styling Properties"
description="The Following Examples Show the different Styling properties of the Float Button Component."
>
<Example
title="Badge Color"
height={150}
config={{
buttons:buttons,
dot:true,
badgeStyle:{
"badgeColor":"#E68E50",
},
}}
compFactory={FloatButtonComp}
/>
<Example
title="Styling properties"
height={150}
config={{
buttons:buttons,
style:{
"background":"linear-gradient(90deg, #fa709a 0%, #fee140 100%)",
"border":"#3377FF",
"borderStyle":"dashed",
"borderWidth":"3px"
},
}}
compFactory={FloatButtonComp}
/>
</ExampleGroup>

<ExampleGroup
title="Animation Style"
description="The Following Examples Show different animations on the Float Button Component."
>
<Example
title="Bounce Animation"
height={150}
config={{
animationStyle:{
"animation":"bounce",
"animationDelay":"1s",
"animationDuration":"3s",
"animationIterationCount":"infinite"
},
}}
compFactory={FloatButtonComp}
/>
<Example
title="Swing Animation"
height={150}
config={{
animationStyle:{
"animation":"swing",
"animationDelay":"1s",
"animationDuration":"3s",
"animationIterationCount":"infinite"
},
}}
compFactory={FloatButtonComp}
/>
<Example
title="Tada Animation"
height={150}
config={{
animationStyle:{
"animation":"tada",
"animationDelay":"1s",
"animationDuration":"3s",
"animationIterationCount":"infinite"
},
}}
compFactory={FloatButtonComp}
/>
</ExampleGroup>

</>
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,6 +90,7 @@ export default function IconButtonExample() {
<Example
title="Icon Size - 30px"
width={120}
height={50}
config={{
prefixIcon:"/icon:antd/audiofilled",
iconSize:"30px",
Expand All@@ -103,6 +104,7 @@ export default function IconButtonExample() {
<Example
title="Icon Size - 40px"
width={120}
height={60}
config={{
prefixIcon:"/icon:antd/audiofilled",
iconSize:"40px",
Expand All@@ -113,6 +115,30 @@ export default function IconButtonExample() {
}}
compFactory={ControlButton}
/>
<Example
title="Custom Styling"
width={120}
height={50}
config={{
prefixIcon:"/icon:antd/audiofilled",
style:{
"background":"linear-gradient(90deg, #fa709a 0%, #fee140 100%)",
"padding":"10px",
"text":"#222222",
"textTransform":"Uppercase",
"textDecoration":"underline",
"textSize":"16px",
"textWeight":"bold",
"fontFamily":"Courier New",
"fontStyle":"italic",
"border":"#222222",
"borderStyle":"solid",
"radius":"10px",
"borderWidth":"2px"
},
}}
compFactory={ControlButton}
/>
</ExampleGroup>
</>
);
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp