frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Border Usage and Individual Direction in HarmonyOS NextSettings

1•flfljh•3h ago
# Border Usage and Individual Direction in HarmonyOS NextSettings

The following details the implementation of component border styling in relevant development environments:

### Border Style Setting Overview

Border styling has been supported since API Version 7, with subsequent versions adding support for different application scenarios (such as ArkTS cards and meta-services).

### border Interface

-

  Function

  :

   

  ```
  border(value: BorderOptions)
  ```

   

  sets unified border styles.

  - Default border width is 0 (invisible)
  - Since API Version 9, parent node borders display above child node content
-

  Support

  :

  - ArkTS Cards: Supported since API version 9
  - Meta Services: Supported since API version 11
- *System Capability*: `SystemCapability.ArkUI.ArkUI.Full`

### borderStyle Interface

-

  Function

  :

   

  ```
  borderStyle(value: BorderStyle | EdgeStyles)
  ```

   

  sets border line styles.

  - Default value: `BorderStyle.Solid`
-

  Support

  :

  - ArkTS Cards: Supported since API version 9
  - Meta Services: Supported since API version 11
- *System Capability*: `SystemCapability.ArkUI.ArkUI.Full`

### borderWidth Interface

-

  Function

  :

   

  ```
  borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths)
  ```

   

  sets border widths.

  - Percentage values not supported
-

  Support

  :

  - ArkTS Cards: Supported since API version 9
  - Meta Services: Supported since API version 11
- *System Capability*: `SystemCapability.ArkUI.ArkUI.Full`

### borderColor Interface

-

  Function

  :

   

  ```
  borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors)
  ```

   

  sets border colors.

  - Default value: `Color.Black`
-

  Support

  :

  - ArkTS Cards: Supported since API version 9
  - Meta Services: Supported since API version 11
- *System Capability*: `SystemCapability.ArkUI.ArkUI.Full`

### borderRadius Interface

-

  Function

  :

   

  ```
  borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses)
  ```

   

  sets border radii.

  - Maximum radius limited to half of component width/height
  - Supports percentage values (relative to component width)
  - Use with `.clip` to prevent child components from overflowing
-

  Support

  :

  - ArkTS Cards: Supported since API version 9
  - Meta Services: Supported since API version 11
- *System Capability*: `SystemCapability.ArkUI.ArkUI.Full`

These interfaces provide comprehensive and flexible control over component border styling across different application scenarios.

### Individual Border Direction Setting Example

``` Row().border({ width: { bottom: 1 }, // Set only bottom border width color: { bottom: 'rgba(153, 159, 181, 0.15)' }, // Set only bottom border color }) ```

My First Open Source AI Generated Library

https://lucumr.pocoo.org/2025/6/21/my-first-ai-library/
1•BerislavLopac•2m ago•0 comments

Show HN: Free AI Tool Makes Viral "Cat Diving" Clips in Seconds

https://vidaigen.github.io/cat-diving-olympics-video-gen/
1•bigjpggogo•2m ago•0 comments

Today it's cheating, tomorrow it's fair. Cluely for B2B mystery shopping

https://hovrai.com/blog/today-is-cheating-tomorrow-is-fair
1•skilldeliver•3m ago•0 comments

Geo-Strategy #8: The Iran Trap [video]

https://www.youtube.com/watch?v=7y_hbz6loEo
1•handfuloflight•3m ago•0 comments

Show HN: Wtmf.ai Your AI companion that understands

https://www.wtmf.ai
1•ishqdehlvi•6m ago•0 comments

Ask HN: Using AI daily but not seeing productivity gains – is it just me?

4•grandimam•13m ago•2 comments

Iran threatened attacks by sleeper cells inside U.S. if it was attacked

https://www.msnbc.com/msnbc/watch/iran-threatened-attacks-by-sleeper-cells-inside-u-s-if-it-was-attacked-242059333587
1•EvgeniyZh•17m ago•0 comments

RAG is the way about retrieval, agent, and grounding truth

https://psiace.me/posts/rag-is-the-way/
1•repsiace•28m ago•0 comments

RAG in Coding Agents: Making Smarter Programming Assistants

https://psiace.me/posts/rag-in-coding-agent/
1•repsiace•30m ago•0 comments

Another What to Watch App

https://what2watch2.vercel.app/
1•memonkey•39m ago•1 comments

Faking Relativity

https://tiffnix.com/faking-relativity
1•gsky•40m ago•0 comments

Show HN: SX – Transfer files from within SSH sessions without reconnecting

https://github.com/Memphizzz/SX
1•memphizzz•42m ago•0 comments

Dropping the First Atomic Bombs

https://www.theguardian.com/world/2025/jun/22/atomic-bomb-hiroshima-nagasaki-author-stephen-walker
1•rippeltippel•44m ago•0 comments

Are we overfitting our code to trends instead of problems?

1•fewbenefit•46m ago•1 comments

Nano-Vllm: lightweight vLLM implementation built from scratch

https://github.com/GeeeekExplorer/nano-vllm
3•simonpure•46m ago•0 comments

Are we overfitting our code to trends instead of problems?

1•fewbenefit•49m ago•0 comments

Framework for Skill Learning

4•michaelshoe•57m ago•0 comments

Openmovement – Watchmaking 2.0

https://openmovement.org/
1•pabs3•1h ago•0 comments

FedEx founder Fred Smith dies at 80

https://apnews.com/article/fred-smith-fedex-founder-died-645c93a192744e1ab8817ffb894ead01
1•keepamovin•1h ago•0 comments

Show HN: A zero-config HTML report plugin for Pytest (single file, CI-friendly)

1•nefaurio•1h ago•0 comments

Product Management: The Good, the Hard, and How to Know If It's Right for You

https://elezea.com/2025/06/product-management-the-good-the-hard-and-how-to-know-if-its-right-for-you/
3•mooreds•1h ago•0 comments

Implicit is better than explicit

https://sophiabits.com/blog/implicit-is-better-than-explicit
3•todsacerdoti•1h ago•0 comments

What I learned recording hours of teens on their phones

https://www.theguardian.com/film/2025/jun/22/lauren-greenfield-social-studies-documentary-film-adolescence-teenagers-phones
3•sandebert•1h ago•0 comments

Compressing for the Browser in Go

https://blog.kowalczyk.info/a-5hum/compressing-for-the-browser-in-go.html
2•todsacerdoti•1h ago•0 comments

I built an app to backup Live Photos from iPhone to external hard drives

2•xmasterdev•1h ago•0 comments

Unlocking Efficiency: Asus IoT Drives Smart Factory Development Through AI

https://iot.asus.com/resources/casestudies/drive-smart-factory-development-through-ai/
1•teleforce•1h ago•0 comments

Vera Rubin Scientists Reveal Telescope's First Images

https://www.nytimes.com/2025/06/23/science/vera-rubin-scientists-reveal-telescopes-first-images.html
3•donohoe•1h ago•0 comments

Converting Sourcemaps to Original JavaScript/TypeScript Sourcecode

https://yasoob.me/posts/converting-sourcemap-to-original-sourcecode/
2•yasoob•1h ago•0 comments

The Sad Case of the Youngest-Ever Alzheimer's Diagnosis

https://www.sciencealert.com/the-sad-case-of-the-worlds-youngest-ever-alzheimers-diagnosis
8•breitling•1h ago•1 comments

LeetCode for System Design

https://leetsys.dev
33•rbajp•1h ago•15 comments