Skip to content

Anything like FluentLabel but renders into a span instead of p? #687

Answered by dvoituron
datvm asked this question in Q&A
Discussion options

You must be logged in to vote

You have to set a style like: display: inline;.

Example:

<p>
    Publishing:

    @if (cat.PublishedTime is null)
    {
        <FluentLabel Color="Color.Warning" Style="display: inline;">Unpublished</FluentLabel>
    }
    else
    {
        <FluentLabel Style="display: inline;">@(cat.PublishedTime)</FluentLabel>
    }
</p>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@datvm
Comment options

Answer selected by datvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants