Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ui
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
ui
Commits
3e7a787d
Commit
3e7a787d
authored
1 year ago
by
Ciarán Ainsworth
Committed by
Kasper Seweryn
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: add section descriptions
Part-of: <
!93
>
parent
f96dd153
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!93
feat: add alert and modal components
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/components/alert/index.md
+2
-2
2 additions, 2 deletions
docs/components/alert/index.md
docs/components/modal/index.md
+8
-2
8 additions, 2 deletions
docs/components/modal/index.md
with
10 additions
and
4 deletions
docs/components/alert/index.md
+
2
−
2
View file @
3e7a787d
...
...
@@ -3,13 +3,13 @@
| Prop | Data type | Required? | Default | Description |
| ------------- | -------------------------------------------------- | --------- | ----------- | ----------------------- |
|
`color`
|
`blue`
\|
`red`
\|
`purple`
\|
`green`
\|
`yellow`
| No |
`secondary`
|
Renders a colored alert
|
|
`color`
|
`blue`
\|
`red`
\|
`purple`
\|
`green`
\|
`yellow`
| No |
`secondary`
|
The color of the alert container
|
## Alert colors
Funkwhale alert support a range of pastel colors
to create
visual
ly
appeal
ing interfaces
.
Funkwhale alert
s
support a range of pastel colors
for
visual appeal.
::: details Colors
...
...
This diff is collapsed.
Click to expand it.
docs/components/modal/index.md
+
8
−
2
View file @
3e7a787d
...
...
@@ -22,8 +22,8 @@ const open5 = ref(false)
| Prop | Data type | Required? | Default | Description |
| ------------- | ----------------- | --------- | ------- | ------------------------ |
|
`title`
|
`string`
| Yes | |
M
odal title |
|
`v-model`
|
`true`
\|
`false`
| Yes | |
Should
the modal
be
open |
|
`title`
|
`string`
| Yes | |
The m
odal title |
|
`v-model`
|
`true`
\|
`false`
| Yes | |
Whether
the modal
is
open
or not
|
...
...
@@ -49,6 +49,8 @@ const open5 = ref(false)
## Modal actions
Use the
`#actions`
slot to add actions to a modal. Actions typically take the form of
[
buttons
](
/components/button/basic
)
.
```
vue-html
<fw-modal v-model="open" title="My modal">
Modal content
...
...
@@ -86,6 +88,8 @@ const open5 = ref(false)
## Nested modals
You can nest modals to allow users to open a modal from inside another modal. This can be useful when creating a multi-step workflow.
```
vue-html
<fw-modal v-model="open" title="My modal">
<fw-modal v-model="openNested" title="My modal">
...
...
@@ -116,6 +120,8 @@ const open5 = ref(false)
## Alert inside modal
You can nest
[
Funkwhale alerts
](
/components/alert/
)
to visually highlight content within the modal.
```
vue-html
<fw-modal v-model="open" title="My modal">
Modal content
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment