Giter Site home page Giter Site logo

Comments (8)

andrconstruction avatar andrconstruction commented on June 11, 2024 1

im so sorry, the problem is that Text block did imported from react-native instead gluestack, now all work as expected

from gluestack-ui.

andrconstruction avatar andrconstruction commented on June 11, 2024

image
DarkMode

from gluestack-ui.

andrconstruction avatar andrconstruction commented on June 11, 2024

image
LightMode

from gluestack-ui.

andrconstruction avatar andrconstruction commented on June 11, 2024

`<InputSlot px="$2"
bg={ isDark ? "$brandPrimary": "$secondary300" }
color={ isDark ? "$secondary300": "$brandPrimary" }

                                >`

from gluestack-ui.

andrconstruction avatar andrconstruction commented on June 11, 2024

bg is works as expected, but not color

from gluestack-ui.

Viraj-10 avatar Viraj-10 commented on June 11, 2024

Hey @andrconstruction, can you give create snack example of this and share with us?

from gluestack-ui.

DaminiPandey avatar DaminiPandey commented on June 11, 2024

Hey @andrconstruction In order to give color to the text inside InputSlot, you need to pass the color prop to the Text component.

Something like this:

<Input> <InputField /> <InputSlot bg="$primary600" p="$2"> <Text color="$fuchsia50" sx={{ "_darK": { color: "$black" } }}>Press</Text> </InputSlot> </Input>

I've created an example demo here. Hope it will be helpful to you.

from gluestack-ui.

DaminiPandey avatar DaminiPandey commented on June 11, 2024

Great! @andrconstruction, I'm closing the issue as it is resolved, please feel free to reopen it in case of any problem.

from gluestack-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.