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

Adding a custom button slot AND customizing the styles in a Dropdown component#35224

Unanswered
martellaj asked this question inQ&A
Discussion options

The V9Dropdown component exposes abutton prop. I can use that slot to customize the dropdown's button (i.e. add an icon to the button based on what option is selected) by passing JSX (that still gets wrapped with abutton element) OR I can use that slot to customize thebutton element that wraps the default button.

However, I cannot figure how to doboth. When passing a custom JSX button (which I require to add an icon), the JSX still gets wrapped with abutton element with the class "fui-Dropdown__button" that applies default styling I'm trying to remove. Is this possible?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@martellaj

[8]ページ先頭

©2009-2025 Movatter.jp