Skip to content
Discussion options

You must be logged in to vote

@kokoshneta thanks for the request! The field:class attribute prefix actually already works for targeting the outermost <ui-field> element when using shorthand:

<div class="grid grid-cols-6">
    <flux:input class="col-span-4" placeholder="Name" />
    <flux:input field:class="col-span-2" label="Name" />
</div>

This follows the same nested:attribute convention used by other components (e.g., avatar:class on the profile component).

Your comment did make us realise we needed to update the input component to support the input: prefix to match this convention, so we've submitted a PR to add it as an alternative to class:input for targeting the inner <input> element.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kokoshneta
Comment options

@joshhanley
Comment options

@ghabriel25
Comment options

@joshhanley
Comment options

Answer selected by joshhanley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants